Skip to content

Instantly share code, notes, and snippets.

@terremoth
Last active August 23, 2023 03:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save terremoth/13d78ac7f93a37da35f6263cf43a949a to your computer and use it in GitHub Desktop.
Save terremoth/13d78ac7f93a37da35f6263cf43a949a to your computer and use it in GitHub Desktop.
Python pygame + tkinter to .exe with icon and not showing console (prompt) examples
# suppose the main file to load is main.py and the icon file is called main.ico, the process is this:
python -m nuitka --enable-plugin=tk-inter --onefile --disable-console --windows-icon-from-ico=main.ico main.py
pyinstaller --onefile --icon=main.ico --noconsole main.py
cxfreeze -c main.py --icon=main.ico --base-name=Win32GUI --target-dir distcx
@terremoth
Copy link
Author

This is supposed to work on windows, maybe on linux the command line params be different

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment