Compiling Tkinter using Nuitka for portable Python GUI apps

Опубликовано: 10 Октябрь 2024
на канале: Noirth Security
1,769
6

[Expand for the snippet/command for compiling below + like and subscribe pls]

This example uses a calculator example with a theme available here: https://github.com/rdbende/Sun-Valley... + https://github.com/rdbende/Sun-Valley...
Join our community here: https://noirth.com


Src - you can easily change --onefile to --standalone:
python3 -m nuitka --follow-imports wow.py --lto=no --onefile --include-data-file=/home/parallels/Desktop/Nuit/another/themed/Sun-Valley-ttk-theme-master/sun-valley.tcl=sun-valley.tcl --enable-plugin=tk-inter --include-data-dir=/home/parallels/Desktop/Nuit/another/themed/Sun-Valley-ttk-theme-master/theme=theme


Honestly, I've not achieved different results between onefile and standalone, other than onefile tries to deliver a .bin, although this is not working as I would expect. This could be easily worked around using a packager, that automatically extracts/installs the theme tcl file, and theme folder to deliver the UI to end-users. Keep in mind there is much more that can be done with this GUI, for example drawing a list of connected users and display their talking status in the case of a VoIP app