tags:

views:

189

answers:

4

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.

+1  A: 

I had this bookmark saved:

http://www.harshj.com/2009/04/26/the-pyqt-intro/

buckbova
+6  A: 

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.

Chris B.
+1  A: 

My advice would be: have some particular goal in mind, some app that you, or even better someone else, would use in a real world scenario.

I started with the same book Chris B mentioned, i.e. Rapid GUI Programming with Python and Qt and I found it useful and it touched many of the topics you would need in most GUI applications. Additionally, after some time and some confidence gained, you want to have PyQT Classes handy.

Do not avoid C++ examples to explain some problem you'd like to solve, rewriting it in Python is not that hard (depending on the problem, and scope of course).

piobyz
+1  A: 

There is a step-by-step guide at popdevelop.com on how to set up Eclipse with PyQT.

MikaelHalen
That looks really good ... I wonder why noone upvoted. Maybe the answer came too late. :)
jellybean