Compile app with Pyinstaller, but do not launch cmd when running resulting exe

前端 未结 1 778
死守一世寂寞
死守一世寂寞 2021-01-07 05:34

How can I \"compile\" a GUI application with Pyinstaller, and only get the GUI wxPython generates, when I run the executable? At the moment, when I run the exe, a cmd window

相关标签:
1条回答
  • 2021-01-07 06:37

    I think you need to set the console argument in the EXE class to False. See http://www.blog.pythonlibrary.org/2010/08/10/a-pyinstaller-tutorial-build-a-binary-series/ near the end for a spec file that worked for me. It looks like you can get the spec file to include that setting automatically by passing "-w" when you create it. That's also mentioned in the tutorial.

    0 讨论(0)
提交回复
热议问题