How can I hide the console window when freezing wxPython applications with cxFreeze?

后端 未结 4 1043
执念已碎
执念已碎 2020-12-12 21:23

I\'m developing a Python application using wxPython and freezing it using cxFreeze. All seems to be going fine apart from this following bit:

When I run the executab

4条回答
  •  猫巷女王i
    2020-12-12 21:31

    For Windows:

    You have to use a line like this (use file folders and names as appropriate)

    C:/Python/Scripts/cxfreeze C:/Python/Code/yourprogram.py --base-name=Win32GUI --target-dir C:/Python/Dist
    

    By adding the --base-name=Win32GUI option, the console window will not appear.

提交回复
热议问题