Hiding console window
Jørgen Cederberg
jorgencederberg at hotmail.com
Thu Mar 18 11:13:27 EST 2004
Otto Krüse wrote:
> You can tell py2exe to make a windows exe by putting the line windows =
> ["yourscript.py"] in your setup.py script.
>
>
> Example:
> """
> # A setup script
>
> from distutils.core import setup
> import py2exe
>
> setup(windows = ["yourScript.py"])
> """
>
>
> What I'm wondering about now if there's a way to achieve the same for a
> python script (instead of the .exe version of that script). --> I want
> to double-click on a python Tkinter script and only see the GUI, not the
> console window behind it. Does anyone know how to do this?
>
The extension should pyw instead of py!
Regards
Jorgen
More information about the Python-list
mailing list