python:systray
                Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| python:systray [2023/01/30 12:58] – Wulf Rajek | python:systray [2023/05/29 11:55] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 41: | Line 41: | ||
| pass | pass | ||
| + | icon.visible = False | ||
| python = sys.executable | python = sys.executable | ||
| os.execl(python, | os.execl(python, | ||
| Line 46: | Line 47: | ||
| def action_quit(): | def action_quit(): | ||
| + | icon.visible = False | ||
| print(" | print(" | ||
| os._exit(0) | os._exit(0) | ||
| Line 75: | Line 77: | ||
| icon.run(run_call) | icon.run(run_call) | ||
| + | </ | ||
| + | |||
| + | Create version file using: | ||
| + | < | ||
| + | pip install pyinstaller_versionfile | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | import pyinstaller_versionfile | ||
| + | |||
| + | pyinstaller_versionfile.create_versionfile( | ||
| + | output_file=" | ||
| + | version=" | ||
| + | company_name=" | ||
| + | file_description=" | ||
| + | internal_name=" | ||
| + | legal_copyright=" | ||
| + | original_filename=" | ||
| + | product_name=" | ||
| + | ) | ||
| </ | </ | ||
| Line 80: | Line 102: | ||
| < | < | ||
| wine pyinstaller.exe --onefile --icon=systrayicon.ico --add-data " | wine pyinstaller.exe --onefile --icon=systrayicon.ico --add-data " | ||
| + | </ | ||
| + | |||
| + | Pyinstaller options: | ||
| + | < | ||
| + | --onefile: Creates a single file. Synonyms: -F | ||
| + | --windowed: Ensures that no console is opened during execution. Synonyms: -w and --noconsole | ||
| + | --add-data: adds data to the file using " | ||
| + | --version: adds exe file version information | ||
| + | --icon: adds windows application icon file | ||
| </ | </ | ||
python/systray.1675083530.txt.gz · Last modified:  (external edit)
                
                