starting a Python 2.5 executable without the DOS window

Daniel daniel.watrous at gmail.com
Fri Feb 27 19:14:35 CET 2009


On Feb 27, 8:19 am, Vlastimil Brom <vlastimil.b... at gmail.com> wrote:
> >> 2009/2/27 Greg Miller <et1ssgmil... at gmail.com>:
> >> > I am working on a program that controls a piece of equipment.  The GUI/
> >> > control software is written with Python2.5/wxPython.  I would like to
> >> > know if there is a way of starting the GUI without the DOS window
> >> > having to launch?  I would like only the application itself to appear,
> >> > no DOS window.  Thanks for any information.
> >> > Greg Miller
> >> > --
>
> 2009/2/27 Greg Miller <et1ssgmil... at gmail.com>:
>
> > Sorry, I should have been a bit more specific, it is an executable, .exe,
> > application created with PytoExe.
>
> Ok, then you can adjust your setup script for py2exe to contain
>
> setup(windows=["sourcefile.py"] ... )
>
> instead of
>
> setup(console=["sourcefile.py"] ...) which you probably have now.
>
> hth,
>   vbr

Just giving it the .pyw extension also seems to work (as I remember)



More information about the Python-list mailing list