Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #81032
| From | Terry Reedy <tjreedy@udel.edu> |
|---|---|
| Subject | Re: tkinter mainloop |
| Date | 2014-11-19 06:22 -0500 |
| References | <546c5c67$0$2888$426a34cc@news.free.fr> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.15996.1416396205.18130.python-list@python.org> (permalink) |
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
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
tkinter mainloop "ast" <nomail@invalid.com> - 2014-11-19 09:46 +0100
Re: tkinter mainloop Terry Reedy <tjreedy@udel.edu> - 2014-11-19 06:22 -0500
Re: tkinter mainloop Rick Johnson <rantingrickjohnson@gmail.com> - 2014-11-19 18:04 -0800
Re: tkinter mainloop "ast" <nomail@invalid.com> - 2014-11-20 10:50 +0100
csiph-web