Open Tkinter multiple Windows with delay (Python) <p>I've been trying to open several Tkinter windows with a delay of couple seconds between each Tkinter window.</p> <p>My Script so far : </p> <pre><code>import Tkinter as tk import os from PIL import Image, ImageTk from win32api import GetSystemMetrics from time import sleep from random import uniform root = tk.Tk() tk.Label(root, text="this is the root window").pack() root.geometry("10x10") l = [] def showPic(i): if(i&lt;5): loc = os.getcwd() + '\pictures\pic%s.jpg' % i img = Image.open(loc) img.load() photoImg = ImageTk.PhotoImage(img) l.append(photoImg) window = tk.Toplevel() window.geometry("750x750+%d+%d" % (uniform(0, GetSystemMetrics(0) - 750), uniform(0, GetSystemMetrics(1) - 750))) tk.Label(window, text="this is window %s" % i).pack() tk.Label(window, image=photoImg).pack() root.after(1000, showPic(i+1)) else: return root.after(0, showPic(1)) root.mainloop() </code></pre> <p>I also tried using the sleep() and after() functions with no success. It waits the time before preparing the window, but shows them all together, simultaniously, after the time I set</p>