When manipulating photoimage objects, with:
import tkinter as tk img = tk.PhotoImage(file=\"myFile.gif\") for x in range(0,1000): for y in range(0,1000):
Use a bounding box:
from Tkinter import * root = Tk() label = Label(root) label.pack() img = PhotoImage(width=300,height=300) data = ("{red red red red blue blue blue blue}") img.put(data, to=(20,20,280,280)) label.config(image=img) root.mainloop()