Tkinter mainloop and image packing must be in the same code section?

后端 未结 0 857
半阙折子戏
半阙折子戏 2020-12-09 11:16

The following example simply won\'t display the image:

from tkinter import *

def main(root):
    img = PhotoImage(file="image.png")
    Label(image         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题