Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #105674
| From | Terry Reedy <tjreedy@udel.edu> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: Tkinter --> Why multiple windows |
| Date | 2016-03-24 21:27 -0400 |
| Message-ID | <mailman.126.1458869278.2244.python-list@python.org> (permalink) |
| References | <d1b257d3-6d27-4201-b3db-e363409b2623@googlegroups.com> <mailman.107.1458851325.2244.python-list@python.org> <e1dcb15a-61bb-480c-bd6e-ff4107149a53@googlegroups.com> |
On 3/24/2016 4:43 PM, kevind0718@gmail.com wrote: > On Thursday, March 24, 2016 at 4:29:03 PM UTC-4, Random832 wrote: >> On Thu, Mar 24, 2016, at 16:24, kevind0718@gmail.com wrote: >>> If I run the code below two windows appear. >>> One empty and one with the text box and button. >>> Why? The answer to that sort of question is nearly always "Because that is what you asked for" >> The empty one is the root window. > I kinda guessed that. > Is there any downside to hiding it using root.withdraw(). In your example, there is no apparent reason to hid root and use a Toplevel. IDLE, however, is currently a multiwindow application with no main window and it uses 'root.withdraw'. (In fact, it appears to do so twice in the IDLE process -- possibly a mistake.) -- Terry Jan Reedy
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Tkinter --> Why multiple windows kevind0718@gmail.com - 2016-03-24 13:24 -0700
Re: Tkinter --> Why multiple windows Random832 <random832@fastmail.com> - 2016-03-24 16:28 -0400
Re: Tkinter --> Why multiple windows kevind0718@gmail.com - 2016-03-24 13:43 -0700
Re: Tkinter --> Why multiple windows Terry Reedy <tjreedy@udel.edu> - 2016-03-24 21:27 -0400
Re: Tkinter --> Why multiple windows Wildman <best_lay@yahoo.com> - 2016-03-24 20:24 -0500
Re: Tkinter --> Why multiple windows kevind0718@gmail.com - 2016-03-25 06:41 -0700
Re: Tkinter --> Why multiple windows Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2016-03-25 13:03 -0400
csiph-web