May-04-2019, 10:39 AM
May-04-2019, 01:58 PM
The mainloop is a infinite loop that runs until no windows are open anymore.
It is responsible for the drawing of the widgets and checking for events like button clicks.
If the mainloop is interrupted by long running code or a
the GUI will lockup and no events can happen.
It is responsible for the drawing of the widgets and checking for events like button clicks.
If the mainloop is interrupted by long running code or a
time.sleep
the GUI widgets wont get redrawn,the GUI will lockup and no events can happen.