How to close the DOS Shell when starting a python script

Paddy paddy3118 at netscape.net
Sat Sep 23 01:03:27 EDT 2006


m.errami at gmail.com wrote:
> Hello all.
> I know the question will seem stupid but googling it gives me only
> stuff I don't care about.
> So the question is the following:
> When I start a python script containing a wxApp under windows XP, I
> double click , my program opens and a background DOS shell also opens.
> Is there any way to prevent the DOS from opening?
> What is weird is that when I create a freezed version (an executable),
> then the DOS shell doens't open anymore.
> Any clues?
> Thanks for your help
> M.E.

Rename the .py file with extension .pyw.
- Paddy.




More information about the Python-list mailing list