📜  tkinter 背景图片 python 3 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:27.247000             🧑  作者: Mango

代码示例1
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