The Tkinter library in the Python standard library is an interactive tool which you can import. Basically, you can create buttons and boxes and popups and stuff that appear as windows which you manipulate with code.
If you use Tkinter, do not use time.sleep()
, because it will muck up your program. This happened to me. Instead, use root.after()
and replace the values for however many seconds, with a milliseconds. For example, time.sleep(1)
is equivalent to root.after(1000)
in Tkinter.
Otherwise, time.sleep()
, which many answers have pointed out, which is the way to go.