tkinter mainloop
Terry Reedy
tjreedy at udel.edu
Wed Nov 19 06:22:50 EST 2014
More information about the Python-list mailing list
Wed Nov 19 06:22:50 EST 2014
- Previous message (by thread): tkinter mainloop
- Next message (by thread): tkinter mainloop
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message (by thread): tkinter mainloop
- Next message (by thread): tkinter mainloop
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list