Hide console window with Tkinter and cx_Freeze

后端 未结 7 1690
南方客
南方客 2020-12-03 03:52

I am using cx_freeze to freeze a tkinter app. When I run the exe I get a wonderfully USELESS console window along with my tkinter GUI.

I would like to remove

7条回答
  •  半阙折子戏
    2020-12-03 04:38

    Do exactly just like gary said, then:

    setup(name="ur package name",
             version="ur package version",
             description="as above",
             executables=[Executable("ur_script.py", base=base)]
    

    This will work cx_Freeze

提交回复
热议问题