📜  如何在 python tkinter 中设置背景图像 - Python 代码示例

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

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