I am developing a python app, using python and sqlite and GUI to re-create a Access 2007 report generating app. Since the app is portable, I'm looking for GUI solution for python that user doesn't need to install addition things before using the app.
Is there any GUI solution suits my need? Thanks!
While being incredibly useful for the fields of data science and machine learning, Python is also great for developing graphical user interfaces! In fact, it has many frameworks that even beginners can use to easily get started with developing a GUI.
Tkinter ProgrammingImport the Tkinter module. Create the GUI application main window. Add one or more of the above-mentioned widgets to the GUI application. Enter the main event loop to take action against each event triggered by the user.
1–PyQt5. PyQt5 is a very well-known GUI framework used by both Python coders and UI designers. One of its components, the PyQt package, is built around the Qt framework, which is a leading cross-platform GUI design tool for just about any kind of application.
The amount of code required to implement custom GUIs is much shorter using PySimpleGUI than if the same GUI were written directly using Tkinter or Qt. PySimpleGUI code can be “ported” between GUI frameworks by changing import statements.
The only fully portable GUI for Python is the standard TkInter, if you don't want any additional install beside Python. The Themed Tk version is quite nice looking, compared to the older Tk version (the themed version is available through the ttk
module).
A few weeks ago, I had to answer the same question as you. I came to the conclusion that PyQt is currently the best choice for a modern, powerful, well-maintained, and portable GUI, mainly because of some of the shortcomings of its main contender (wxPython, see below). (Tk, and Themed Tk would be good for simpler needs.)
Two words of warning against wxPython: it is not possible to install it via the popular Fink package manager on Mac OS X, currently, which makes it far less portable than PyQt and TkInter; it is also not yet Python 3-compatible, as far as I know.
PS (Dec. 2012): PySide is currently a strong alternative to PyQt. There are a few Stackoverflow questions about the respective merits of these two Python bindings.
wxPython is very portable
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With