samedi 16 décembre 2006

[Python] How-to: hide the console

Solution 1 :

Rename the .py file in .pyw (w for window)

Solution 2:

Use' pythonw' instead of Python to launch the script.

This second solution is useful if you have a pyc file : create a shortcut and in it open the file with pythonw (the pyc file won't open a console)

Aucun commentaire: