Tkinter events outside of the mainloop? Tkinter events outside of the mainloop? tkinter tkinter

Tkinter events outside of the mainloop?


There is no way. Mouse movement is presented to the GUI as a series of events. In order to process events, the event loop must be running.

Also, you should pretty much never do a sleep inside a GUI application. All that does is freeze the GUI during the sleep.

Another hint: you only need to create an icicle once; to make it fall you can use the move method of the canvas.

If you are having problems understanding event based programming, the solution isn't to avoid the event loop, the solution is to learn how event loops work. You pretty much can't create a GUI without it.