python – 为什么Photoimage放慢了?

python – 为什么Photoimage放慢了?

在操作photoimage对象时,使用: import tkinter as tkimg = tk.PhotoImage(file=myFile.gif)for x in range(0,1000): for y in range(0,1000): img.put({red}, (x, y)) put操作需要很长时间.有更快的方法吗? 使用边界框: from Tkinte