Python Forum
python GUI - which to use ? - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: General (https://python-forum.io/forum-1.html)
+--- Forum: News and Discussions (https://python-forum.io/forum-31.html)
+--- Thread: python GUI - which to use ? (/thread-21001.html)

Pages: 1 2


python GUI - which to use ? - Johnse - Sep-10-2019

Hello,

Could someone advise me on what software or package that is free
and easy to use to build python GUI ?

I have use pyQT before and it works great, there are currently two
versions 4 and 5. Do both of them work for any version python ?

Please advise on a software or package that is free and easy to use to build python GUI.

Thanks !


RE: python GUI - which to use ? - Larz60+ - Sep-10-2019

Easy to use is relative as all graphics packages are quite complex. However the easiest (and by same criteria most restrictive) package is the built-in (most installations) tkinter.
Stepping up, Qt (latest version Qt5) is probably the most robust, but has limitations on commercial applications.

Personally I prefer the Phoenix version of wxpython which contains a rich library of widgets, an excellent demo package and can be used in commercial applications without restrictions. You can preview some of the available widgets here: https://wxpython.org/Phoenix/docs/html/gallery.html

For most platforms, you can install (from command line) using 'pip install wxpython'
Be sure to download the demo see: https://uwpce-pythoncert.github.io/Py300/notes/Installing_wxPython_demo.html


RE: python GUI - which to use ? - metulburr - Sep-10-2019

PyQt4 and PyQt5 both work for python.
The change quoted from google searching
Quote:The main change from Qt4 to Qt5 and hence from PyQt4 to PyQt5 is the rearrangement of certain classes so that the Qt project is scalable and generates a smaller executable.

The QtGui library was divided into 2 submodules: QtGui and QtWidgets, in the second only the widgets, namely QMainWindow, QPushButton, etc. And that is the change you must make:

That is definitely an option for you since you are familiar with it.

I would use WxPython Phoenix if i was to create a GUI. But that is half because i am more familiar with that than pyqt.


RE: python GUI - which to use ? - Johnse - Sep-10-2019

Thanks to you both for answering my question.
PyQT is a software application that needs installation and with
that software you can design the GUI.

Are the ones you mentioned software or we have to write the codes to design it ?
I think the codes to design it is difficult because designing a GUI can be complex.

dot.NET and C# has visual studio to design it.


RE: python GUI - which to use ? - buran - Sep-10-2019

what you are looking for is GUI designer
I use wxGlade for wxPython Phoenix and I am satisfied. It's actively developed and I had found a bug that was rapidly fixed when I reported it.
There is also wxFormBuilder

for GTK there is Glade


RE: python GUI - which to use ? - Johnse - Sep-11-2019

(Sep-10-2019, 12:02 PM)buran Wrote: wxFormBuilder

Thanks, nice to know. Out of those
which one is nice to know that can create
professional GUI design ?

I thought these are the big three.
Tkinter, wxPython, and PyQt.

What is the designer for Tkinter ?


RE: python GUI - which to use ? - snippsat - Sep-11-2019

Qt Designer is the most advance designer for GUI in Python,it's close looking to Visual Studio C#/Net designer.
It free to use,install under start Qt Designer with designer command line.
# Install PyQt5 
pip install PyQt5

# This will install PyQt5 designer 
pip install pyqt5-tools

# Install wxPython 
pip install wxpython
Johnse Wrote:Thanks, nice to know. Out of those
which one is nice to know that can create
professional GUI design ?
All can be used for that,no is it more common to use Qt or wxPython for that.
Ex VLC is Qt, Wxpython eg screen shot from wxWidgets(wxpython is the Python version of wxWidgets).
Thonny is made with Tkinter.

Look at this Thread where we discuss Moore about this,
there also mention using Web as GUI,this is what i have done most over the latest year,i used a lot wxPython before.


RE: python GUI - which to use ? - buran - Sep-11-2019

(Sep-11-2019, 03:43 AM)Johnse Wrote: Out of those which one is nice to know that can create professional GUI design

The feel and look of your GUI will depend on the framework you choose. These are just tools to help design/build your GUI (sort of WYSWYG editors). You can create the same GUI without using designer. Using designer often will end with more lines of code compared to when you write everything yourself. So don't confuse the designer tool and the framework.
Here is extensive list of frameworks. There is also section GUI Design Tools and IDEs


RE: python GUI - which to use ? - Johnse - Sep-11-2019

(Sep-11-2019, 05:35 AM)snippsat Wrote: Qt Designer is the most advance designer for GUI in Python,it's close looking to Visual Studio C#/Net designer.
It free to use,install under start Qt Designer with designer command line.
# Install PyQt5 
pip install PyQt5

# This will install PyQt5 designer 
pip install pyqt5-tools

# Install wxPython 
pip install wxpython

What is the difference between:
pip install PyQt5 and
Pip install PyQt5-tools

They all install the design software
to help design the GUI ?
I do this installation following your
steps by going to command line and which folder ?

What if there is proxy blockage ?


RE: python GUI - which to use ? - Larz60+ - Sep-11-2019

Correct me If I am wrong, but PyQt5 is not free if used for commercial applications.