Hiding console window
Otto Krüse
otto_kruse at hotmail.com
Thu Mar 18 10:31:10 EST 2004
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?
Regards,
Otto
Josef Meile wrote:
> Peter Hansen wrote:
>
>> Lucas Raab wrote:
>>
>>> I'm looking to play a joke on a friend and I'm wondering if there's a
>>> way to
>>> not show or hide the DOS console. My friend doesn't have python so I
>>> have to
>>> compile it to an EXE.
>>
>>
>>
>> Use py2exe to compile Python programs to EXEs.
>>
>> You would need to define what "hide" means to you to get a useful
>> answer to the first part of the question. I would just click on the
>> "close" gadget in the upper right corner, if I wanted to "hide" a DOS
>> console...
>>
>> -Peter
>
> I think there is a way of telling py2exe that the program is a windows
> exe, so you won't see the console. You just have to invoque the py2exe
> help. If I'm not wrong the option should be "--help" or "-h"
>
>
> Regards,
> Josef
>
More information about the Python-list
mailing list