Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to make custom buttons tkinter

from tkinter import *

root = Tk()

button = Button(root, text="Click me!")
img = PhotoImage(file="C:/path to image/example.gif") # make sure to add "/" not ""
button.config(image=img)
button.pack() # Displaying the button

root.mainloop()
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #custom #buttons #tkinter
ADD COMMENT
Topic
Name
7+6 =