Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

tkinter background image python 3

You need to apply the grid method to the label that contains the image, not the image object:

bg_image = PhotoImage(file ="pic.gif")
x = Label (image = bg_image)
x.grid(row = 0, column = 0)
http://effbot.org/tkinterbook/photoimage.htm
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #tkinter #background #image #python
ADD COMMENT
Topic
Name
6+7 =