Suppressing console on Windows?

Adrian Eyre a.eyre at optichrome.com
Mon Oct 11 06:49:41 EDT 1999


> My apologies if this is a FAQ, but is there a way to prevent the text
> console appearing when running a Tkinter-based Python script on Windows?

Run the script with pythonw.exe instead of python.exe. Assuming you
have run the installer for pythonwin, then just renaming the script to
have a .pyw extension should achieve this.

--------------------------------------------
Adrian Eyre <mailto:a.eyre at optichrome.com>
Optichrome Computer Solutions Ltd
Maybury Road, Woking, Surrey, GU21 5HX, UK
Tel: +44 1483 740 233  Fax: +44 1483 760 644
http://www.optichrome.com 
--------------------------------------------





More information about the Python-list mailing list