tkinter canvas image not displaying

后端 未结 2 680
忘掉有多难
忘掉有多难 2021-02-19 10:20

I have a simple canvas being created in a function, and i would like an image displayed on the canvas.

def start(root):
    startframe = tkinter.Frame(root)
             


        
2条回答
  •  半阙折子戏
    2021-02-19 10:27

    How about canvas.update()? I was suffering a similar problem. I am using grid, so instead of .pack I needed to use .update.

提交回复
热议问题