14 September 2011
General information on python development tools
There are several libraries for developing GUI's using python. My interest is in cross-platform libraries. Here are some references:
There is a comprehensive list of GUI's to use with python in GUI Programming in Python. For a list of IDE's see Integrated Development Environments for python.
Qt with python
PyQt is a Python binding of the cross-platform GUI toolkit Qt. There are other bindings too, like PySide.
Installation of PyQt4
The needed packages under a debian-like distribution are:
sudo aptitude install qt4-doc qt4-doc-html qt4-demos qt4-designer
For development with python:
sudo aptitude install python-qt4 qt4-designer \
pyqt-tools pyqt4-dev-tools python-qt4-gl
If using Qt-Designer version 4 the generated *.ui file should be converted to python code using pyuic4 and not pyuic (this is for Designer 3). The pyuic4 is in package pyqt4-dev-tools and pyuic is in package pyqt-tools.
Installing local help
Install the following packages to get the help installed locally:
sudo aptitude install qt4-doc qt4-doc-html qt4-demos qt4-dev-tools \
python-qt4-doc
The installed documents are in:
There is a GUI application to browse the help files that makes it possible global searches and index: assistant-qt4
References to online documentation
- Qt developer guide at Nokia. (Online version of the installed in /usr/share/qt4/doc/html/). See the Model/View Tutorial.
- Qt Reference Documentation at Trolltech (mirror).
- PyQt Reference Guide (online version of the installed in /usr/share/doc/python-qt4-doc/).
- General information on Qt and python, from python.org.
Tutorials and introductions:
- The PyQt4 tutorial is a tutorial on using Qt with python but without the use of qt-designer, developing all the GUI from the program itself.
- An Introduction to PyQt: creating GUIs with Python’s QT bindings
- The Independent Qt® Tutorial. See chapter 13 for samples on List, Trees and Tables.
- Introduction to PyQt4 (using Designer and pyuic4).
- A Simple Tutorial on GUI Programming Using Qt Designer With PyQt4. A very short introduction to using python and qt-design-4.
- GUI Programming with Python: QT Edition is not a but a complete online book. There is a chapter dedicated to qt-designer.
Books
Some book (not online books) are:
Related tags: python