Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hide the console of an .exe file created with PyInstaller

I want to make my program executable. I used TkInter to write the GUI, and I read somewhere that you have to save your file as .pyw to hide the console when the program is executed. The problem is that after making it an executable with PyInstaller, the console shows up again, even though the file converted was .pyw. How can I hide the console also in the .exe file?

like image 624
Matteo Secco Avatar asked Dec 13 '16 19:12

Matteo Secco


1 Answers

Did you try --windowed command line flag ?

like image 123
Maurice Meyer Avatar answered Sep 21 '22 09:09

Maurice Meyer