How to suppress a command window popping up.

I'm not familar with window programming, but last weekend
I installed Python and wxPython on the XP machine at home
and transferred what I had written there.

What I found annoying was, that when I launched the python
program, somekind of command window opened first, before
opening the program window and it stayed until the program
finnished. Closing this window also terminated the program.

Can this be avoided?

···

--
Antoon Pardon

Antoon Pardon wrote:

I'm not familar with window programming, but last weekend
I installed Python and wxPython on the XP machine at home
and transferred what I had written there.

What I found annoying was, that when I launched the python
program, somekind of command window opened first, before
opening the program window and it stayed until the program
finnished. Closing this window also terminated the program.

Can this be avoided?

Yep. Launch the app with pythonw.exe instead of python.exe. You can either make your own shortcut that does that explicitly, or change the name of your main module to have a .pyw extension.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!