Hi,

Thus spoketh Bob Greschke <b...@greschke.com> 
unto us on Thu, 30 Sep 2010 11:06:49 -0400:

> The .withdraw() should be right after the statement that creates the
> Toplevel window.  Creating it, then making the call to this def show()
> is giving the system time to make the window visible.  If the Toplevel
> () and the .withdraw() are together the window doesn't show up until
> the .deiconify().
> 

This does actuallly not happen here (with IceWm), unless update_idletasks
() or update() are called somewhere in between, maybe it's Wm dependent
behavior? Anyway, in real world code you are surely right, withdraw()
should be called right after window creation.

regards

Michael


.-.. .. ...- .   .-.. --- -. --.   .- -. -..   .--. .-. --- ... .--. . .-.

Too much of anything, even love, isn't necessarily a good thing.
                -- Kirk, "The Trouble with Tribbles", stardate 4525.6
_______________________________________________
Tkinter-discuss mailing list
Tkinter-discuss@python.org
http://mail.python.org/mailman/listinfo/tkinter-discuss

Reply via email to