Python Forum
Learning GUI programming - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: GUI (https://python-forum.io/forum-10.html)
+--- Thread: Learning GUI programming (/thread-9447.html)



Learning GUI programming - SBachar - Apr-09-2018

I want to learn GUI with Python (in Linux, UBUNTU).
How do I start? Any suggestions? Any good book?
Thanks.


RE: Learning GUI programming - nilamo - Apr-09-2018

The first step is to decide which toolkit you want to use. Since you're on linux, you should probably pick the one that's mostly used with whichever distro you're on (gtk or qt), or use wx, which abstracts that a bit and will use whichever's available (...I think).

Once you know which toolkit you want to work with, the docs for that toolkit should be able to help you get started.


RE: Learning GUI programming - The_Raven - Oct-25-2018

wxPython would abstract GTK, but an excellent choice due to the fact that it's very established. It's currently being updated (Phoenix branch) targeting Python 3.x Doing a recent google have discovered that wxQT provides support for QT5 most notably so that's very good and lays a solid foundation for wxPython.

There are also PyQT and Kivy among many others. Kivy targeted mobile platforms initially but now also aims at the desktop platform; supports using either CPU (blitting) or GPU rendering at your preference and provides interface support for external layout files similar to css. Not really familiar with PyQT or QT in general, but have heard many good things about both.


RE: Learning GUI programming - Alfalfa - Oct-25-2018

I would recommend PyQt, as it is a very complete framework, cross-platform and actively developped. Qt recently announced that they will deploy new efforts on their python branch, called "Qt for Python", which use a more flexible license. It is also prettier than others toolkit, IMHO, and with QtDesigner it is very easy to create a decent layout from scratch.