Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to hide the python console window in Pyinstaller

I used pyinstaller -F in order to create one .exe file to run. I would like it to run in as a background process. That means that if one clicks the .exe file, he can only close it from the "PROCESSES". I want the program will run in the background and will not be seen. (As opposed to now, where I see the black console.)

like image 347
Guy Avatar asked Jun 08 '15 13:06

Guy


People also ask

How do I hide the console window in Python?

Simply save it with a . pyw extension. This will prevent the console window from opening.

Does PyInstaller hide source code?

Hiding the Source Code The bundled app does not include any source code. However, PyInstaller bundles compiled Python scripts ( . pyc files). These could in principle be decompiled to reveal the logic of your code.

How do I change the icon on PyInstaller?

Use the --icon argument to specify a custom icon for the application. It will be copied into the Resources folder. (If you do not specify an icon file, PyInstaller supplies a file icon-windowed.


1 Answers

I think this will help you.

pyinstaller "filename.filetype" -w -F

like image 99
jotjern Avatar answered Oct 02 '22 22:10

jotjern