In a class, in a function I am creating a Tkinter Canvas. This function is being called by another class, I would like for the Tkinter window to pop up for 30 seconds and th
Don't use time.sleep() with tkinter. Instead, call the function after on the widget you want to close.
time.sleep()
Here it is the most simple example:
import tkinter as tk w = tk.Tk() w.after(30000, lambda: w.destroy()) # Destroy the widget after 30 seconds w.mainloop()