On 11/19/2014 3:46 AM, ast wrote:
Hello
mainloop() is a window method which starts the event manager which
tracks for events (mouse, keyboard ...) to be send to the window.
But if I forget the root.mainloop() in my program, it works well anyway,
I cant see any failure. Why ?
Second question, is it possible to cancel a mainloop() ?
The one loop should been handling all events for all windows.
I neeed this feature because I have a main window "root = Tk()"
which opens a Toplevel secondary window "top = Toplevel()"
and I would like root window to be frozen while the user fills
the top window.
There are methods for freezing a widget. Something like root.withdraw.
But there is more than one for doing slightly different things.
--
Terry Jan Reedy
--
https://mail.python.org/mailman/listinfo/python-list