[Tutor] Saving GUIs

Dave Angel d at davea.name
Tue Oct 9 18:40:08 CEST 2012


On 10/09/2012 12:27 PM, tayo rotimi wrote:
> Hi,
>
>
> I have started creating GUIs. But my current challenge now is saving the GUIs created. I have observed that 
> whenever I close the console, the GUIs also get closed. So, please what do I 
> need to do to save the GUIs, or call them back when next needed, if they don't actually get extinguished when the console is closed?
> I use Python 3.2 on windows 7.
>
>
> Regards. 
>
> Tayo.
>

First question is whether that console is desired in the first place. 
It may depend on which GUI library you're using (wx, tkinterf, ...) but
Windows has a habit of requiring a console to be sitting around for each
application, just in case it decides to display something on it.  The
usual workaround is to run PythonW.exe instead of Python.exe.   One way
to cause this is to rename the main script to have an extension of .pyw
instead of .py  , assuming the appropriate file associations exist.

-- 

DaveA



More information about the Tutor mailing list