I was brushing up on Tkinter when I looked upon a minimal example from the NMT Tkinter 8.5 Reference.
#!/usr/bin/env python import tkinter as tk class Appli
Sometimes some widgets run Tk() on their own. But I don't know which widgets and why.
Tk()
Sometimes it runs even if you don't use mainloop() - mostly on Windows.
mainloop()
Tkinter is strange wrapper on Tcl/Tk :)
But I prefer to use root = Tk() and root.mainloop() always.
root = Tk()
root.mainloop()