Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Starting Python and PyQt - Tutorials, Books, general approaches [closed]

After doing web development (php/js) for the last few years i thought it is about time to also have a look at something different. I thought it may be always good to have look of different areas in programming to understand some different approaches better, so i now want to have look at GUI development.

As programming language i did choose Python where i now slowly get the basics and i also found this question:

How to learn python

which already contains good links and book proposals. So i am now mainly looking for some infos about PyQt:

  • Tutorials
  • Books
  • General tips for GUI development

I already looked at some tutorials, but didn't find any really good ones. Most were pretty short and didn't really explain anything.

Thanks in advance for advises.

like image 825
enricog Avatar asked Jun 24 '10 18:06

enricog


People also ask

Is PyQt better than TkInter?

thenPyQt comes with many powerful and advanced widgets. TkInter does not come with advanced widgets. 5. PyQt have a Qt Designer tool which we can use to build GUIs than get python code of that GUI using Qt Designer.

Do I need Qt to use PyQt?

Your PyQt6 license must be compatible with your Qt license. If you use the GPL license, then your code must also use a GPL-compatible license. If you want to use PyQt6 to create commercial applications, then you need a commercial license for your installation.

Is PyQt widely used?

Usage. PyQt is widely used for creating large-scale GUI-based programs. It gives programmers the freedom to create GUIs of their choice while also providing a lot of good pre-built designs. PyQT gives you widgets to create complex GUIs.

Is PyQt good for GUI?

PyQt is one of the toolkits you can use to develop cross-platform GUI applications in Python. It is powerful and easy to learn if you already have a firm grasp of this language.


1 Answers

The first thing to realize is that you'll get more mileage out of understanding Qt than understanding PyQt. Most of the good documentation discusses Qt, not PyQt, so getting conversant with them (and how to convert that code to PyQt code) is a lifesaver. Note, I don't actually recommend programming Qt in C++; Python is a fantastic language for Qt programming, since it takes care of a lot of gruntwork, leaving you to actually code application logic.

The best book I've found for working with PyQt is Rapid GUI Programming with Python and Qt. It's got a nice small Python tutorial in the front, then takes you through the basics of building a Qt application. By the end of the book you should have a good idea of how to build an application, and some basic idea of where to start for more advanced topics.

The other critical reference is the bindings documentation for PyQt. Pay particular attention to the "New-style Signal and Slot Support"; it's a huge improvement over the old style. Once you really understand that document (and it's pretty short) you'll be able to navigate the Qt docs pretty easily.

like image 111
Chris B. Avatar answered Oct 27 '22 09:10

Chris B.