grab = ImageGrab.grab()
grab = ImageTk.PhotoImage(grab)
self.canvas.create_image(1920 // 2, 0, anchor='n', image=grap)
python3.7.2,pillow6.1.0
为什么显示不出截图来呢?canvas是已经正确创建的,如果改成下面的加载文件canvas就可以显示
image_file = ImageTk.PhotoImage(file='..//images//test.bmp')
self.canvas.create_image(1920 // 2, 0, anchor='n', image=image_file)