Re: [Tkinter-discuss] Minimizing a Python/Tk application

2006-09-20 Thread Gerardo Juarez
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. >

Re: [Tkinter-discuss] Minimizing a Python/Tk application

2006-09-20 Thread Gerardo Juarez
Thanks Francois, Multiple threads are always trickier. On the other hand, wxpython could be the solution, but I wish it could be done in Tk, because I already have the multiplatform program written and it would save me redoing it just for Windows. And also see my previous message. Gerardo On Sa

Re: [Tkinter-discuss] Minimizing a Python/Tk application

2006-09-20 Thread Metz, Bobby W, WWCS
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 hav

Re: [Tkinter-discuss] Minimizing a Python/Tk application

2006-09-20 Thread Metz, Bobby W, WWCS
Yes, manipulating Tk from a child thread is problematic and can't be done directly, e.g. try launching a Dialog box from a thread and see what happens. One trick I've done in the past is to pass a reference to the parent to the child thread, then when I want to update the GUI in the parent, say a

Re: [Tkinter-discuss] Minimizing a Python/Tk application

2006-09-20 Thread Gerardo Juarez
I just found it! What I want is to run the application minimized and to see the controls only when I need to reconfigure its behaviour. I searched for the function that you mention and found that it must be iconify(). Like this: root = Tk() root.iconify() withdraw() removes the window from the s