What type of window are you displaying? It sounds like you're tying the withdraw code to a button or something for a user to click; otherwise, you would have some event or other sub-routine that fires the deiconify later based on conditions or program flow. In my example below, as long as you have a variable pointing to the window you can call the deiconify at any time. If there is a simple minimize instead of hide...I don't remember what that function is.
B -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gerardo Juarez Sent: Wednesday, September 20, 2006 9:52 AM To: [email protected] Subject: Re: [Tkinter-discuss] Minimizing a Python/Tk application Thanks, it works, but, once the application is minimized I don't have any way to access it -to tell it to deiconify itself for example. I doesn't use a console window. Is killing it the only option? Gerardo On Fri, 15 Sep 2006, Metz, Bobby W, WWCS wrote: > use the withdraw() function, e.g. > > from Tkinter import * > root = Tk() > root.withdraw() # Hide the window > root.deiconify() # Unhide the window > > Bobby > _______________________________________________ Tkinter-discuss mailing list [email protected] http://mail.python.org/mailman/listinfo/tkinter-discuss _______________________________________________ Tkinter-discuss mailing list [email protected] http://mail.python.org/mailman/listinfo/tkinter-discuss
