1

如何调整图像的大小?谢谢

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()
4

0 回答 0