Starting a python GUI from another python GUI.

Andres Rosado arosado at softhome.net
Fri Jan 10 20:09:02 EST 2003


On 03:26 AM 1/8/2003 -0500, the keyboard of python-list-request at python.org 
emitted:
>I'm trying to launch a python GUI from another python program
>using the command:
>
>      os.system('pythonw GUIapp.py')
>
>but an unnecessary console window pops up when the above statement is
>executed despite the use of pythonw.exe instead of python.exe.
>A funny thing is that no console window appear if the above statement
>is executed from a non-GUI python script.
>
>What is the best way to launch a stand-alone python GUI from another
>python GUI? (Without console windows...)
>
>(I'm using python2.2.2 / winXP / wxpython2.3.4.2)

I think that os.popen2() will do the trick. Also, the win32all extensions 
by Mark Hammond have an wrapper of ShellExecute().


--
Andres Rosado
Email: andresr at despammed.com
ICQ: 66750646
Homepage: http://andres980.tripod.com/

Pedaeration, n.:
     The perfect body heat achieved by having one leg under the
sheet and one hanging off the edge of the bed.
         -- Rich Hall, "Sniglets"  






More information about the Python-list mailing list