This example is a basic GUI application.
To package this, you can use auto-py-to-exe
and use "Window Based".
- Make sure "Window Based" is used otherwise a blank terminal will also appear (which we do not need as we are not calling
print
).
An auto-py-to-exe config is supplied here.
- Open a terminal in this directory (
examples/2-no-console
) - Execute
auto-py-to-exe --config auto-py-to-exe-config.json
to open auto-py-to-exe with the supplied config - Click the big blue convert button at the bottom
- When done, click the big blue "OPEN OUTPUT FOLDER" to view the output exe
You can run the exe using a terminal or by double-clicking it. Since we have used window.mainloop()
, the application will keep running until the window is closed.