pythontkinterexe

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?


Solution

  • Did you try --windowed command line flag ?