How to eliminate consol window in MS Windows

Radovan Garabik garabik at center.fmph.uniba.sk.spam
Wed Oct 27 12:12:23 EDT 1999


Robin Dunn <robin at alldunn.com> wrote:
 : Edward Muller <edwardam at home.com> wrote in message
 : news:3813D482.E71116AD at home.com...
 :> "Ľ|˛´Şş¤ýÂÎ" wrote:
 :>
 :> > I want to use wxPython to develop a GUI application in the
 :> > Windows NT. The problem is when I double click the script
 :> > file, a console window always appear. Can I execute the
 :> > python program without this console window?
 :> >
 :> > Ľ|˛´Şş¤ýÂÎ
 :>
 :> try running it with pythonw, not python....
 :>

 : O change the file extension from .py to .pyw to do it automatically.

does it work when you call the script from another python script
via os.system? it does not for me, the console window is opened anyway
os.system('program.pyw '+arguments)

and what is worse, the program does not run in the background
I'd really like to use 
os.spawnv(os.P_NOWAIT, "program.pyw", ("program.pyw", args))
but it does not work at all... am I missing something?
(I tried with the whole path, still nothing....)
(note: I know next to nothing about programming under MS windows.. I am
trying to do a quick port of my unix script)

-- 
 -----------------------------------------------------------
| Radovan Garabik  http://melkor.dnp.fmph.uniba.sk/~garabik |
| __..--^^^--..__         garabik @ fmph . uniba . sk       |
 -----------------------------------------------------------




More information about the Python-list mailing list