Suppressing console on Windows?

Burt Leavenworth edlsoft at mindspring.com
Mon Oct 11 09:19:07 EDT 1999


On Mon, 11 Oct 1999 14:19:04 +1000, "Brian Blackwell"
<blackers at netscape.net> wrote:

>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?
>
>Thanks in advance
>Brian Blackwell
>
>
One solution that works for me is the following:
Say your script is test.py
set up a batch file, say xtest.bat:
   @echo off
   python test.py

Go to Windows Explorer and right click on xtest.bat, click Properties,
select Program tab, select 'minimized' in Run: box, and check 'Close
on exit'
Then at the desktop, click Start, Run and type: c:xtest
The DOS box should not appear.

Burt





More information about the Python-list mailing list