

Print() call will raise an exception, and certain low-level output However, when running under Pythonw.exe, a simple The usual recommendation to run Python GUI applications is with Pythonw.exe, whichĭoes not create a console window. Reasons Why a hidden console on Windows? Python -m oink, and it shows a little window mainloop ()Īfter installing this package somewhere, MacDonald can run it from a terminal with place ( relx = 0.5, rely = 0.5, anchor = tkinter. _main_.py is: import tkinter root = tkinter. Where setup.py is: from setuptools import setup setup ( name = 'oink', version = '1.0', author = 'Old MacDonald', author_email =, url = '', packages =, setup_requires =, ) Before Old MacDonald had heard of desktop-app, he had a Here we'll follow the example in this repository for a module called oink, developedīy Old MacDonald's Farm. Ensure your application appears in the taskbar with the correct name and icon,.desktop file (Linux) to launch yourĪpplication from your desktop applications menu Install a start menu shortcut (Windows) or.after activating a conda env or virtual environment, if any.exe on windows) that runs your application If your application is a Python module runnable from the command line as python -m mymodule, then with minimal configuration desktop-app can: Desktop-app simplifies making a Python GUI application install, launch, and behave inĪ standard way with respect to the application menus and the taskbar in Windows and
