如何在tkinter python 3上调整/控制图片大小

时间:2012-11-03 05:33:24

标签: python python-3.x tkinter

如何调整图像大小?感谢

canvas = Canvas(width = 300, height = 200, bg = 'white')
canvas.grid(row=0, column=0,sticky = 'W')
gif = PhotoImage(file = "picture.gif")
canvas.create_image(0, 0, image = gif, anchor = NW)
mainloop()

0 个答案:

没有答案
相关问题