Hide console window with Tkinter and cx_Freeze

后端 未结 7 1697
南方客
南方客 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:34

    If using pyinstaller use pyinstaller-gui.py In Windows command line type

    python pyinstaller-gui.py

    This will first say "Please use just 'pyinstaller.py'. Gui is not maintained." Change the code l'il bit and you will be able to run this.

    It will show pop up a window to select your script and some checkboxex. Check on 'no console(windows only)

    That's it. You are done!

    Another option: use --noconsole option while building. i.e:

    python pyinstaller.py --noconsole yourscript.py

提交回复
热议问题