Fundamental OOP in Tkinter
This is more about the actual structure of the tkinter
module than it is about OOP principles.
mainloop
is a method of the Misc
class, which is an ancestor of both Tk
and Frame
. When called, it essentially calls the mainloop
method using a reference it has to the root Tk object, so whether you invoke it from root
or app
, the result is the same.