Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python GUI for portable app

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!

like image 208
lokheart Avatar asked Sep 24 '10 12:09

lokheart


People also ask

Is Python good for GUI apps?

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.

How do I make a GUI app in Python?

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.

Which is best GUI for Python?

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.

Is PySimpleGUI better than Tkinter?

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.


2 Answers

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.

like image 156
Eric O Lebigot Avatar answered Oct 19 '22 19:10

Eric O Lebigot


wxPython is very portable

like image 23
Mahmoud Hanafy Avatar answered Oct 19 '22 21:10

Mahmoud Hanafy