Hiding command-line dialog in py2exe

后端 未结 2 1005
醉话见心
醉话见心 2020-12-18 11:39

Hi When I compile my python script with py2exe, everything works well except a usless command-line dialog appears as well as my GUI. Any way to fix this? I have python 2.7 a

2条回答
  •  无人及你
    2020-12-18 12:20

    Using setup(windows=['Main.py']) should remove the command line dialog and use Main.py as your console, instead.

提交回复
热议问题