Exercises, examples and other material relating to training module Y206. This topic is presented on public courses
Learning to program in Python,
Python Programming,
Extra Day
Python Programming - The fundamentals in depth, and an introduction to applications such as GUI design and Data Munging.
This course starts at the fundamentals ... http://www.wellho.net/course/ypfull.html [course] |
Learning to Program in Python - The fundamentals in depth, and an introduction to applications such as GUI design and Data Munging.
This course starts ... http://www.wellho.net/course/ylfull.html [course] |
Extra Days - Subjects not covered on regular public courses!
We offer a wide range of public courses which well cover the training needs of the majority ... http://www.wellho.net/course/axfull.html [course] |
Many of the scripting languages we teach include the ability to provide a GUI - a Graphic User Interface. I ll describe some particular GUIs later in ... http://www.wellho.net/solutions/general- ... -guis.html [longer article] |
Superb technologies which are included in our Python course notes for this week, but are being left OUT of the presentations. Why? Because our courses ... http://www.wellho.net/mouth/1036_Pyt ... ning-.html [short article] |
#!/usr/local/bin/python
import qt
app=qt.QApplication(["WHC Demo 1"])
button=qt.QPushButton("This is a QPushButton!", None)
app.setMainWidget(button)
... http://www.wellho.net/resources/ex.php4?item=y206/pyqthello.py [code sample] |
#!/usr/local/bin/python
import sys
from qt import *
class HelloButton(QPushButton):
def __init__(self, *args):
apply(QPushButton.__init__, ... http://www.wellho.net/resources/ex.php4?item=y206/hq2.py [code sample] |
The Qt GUI (Graphic User Interface) is supported in Python via the PtQt module. With PyQT and Qt, you can develop applications with a graphic look and feel under Python. This module introduces the concepts involved through same programs and demonstration.
This topic is presented on public courses
Learning to program in Python,
Python Programming,
Extra Day
Examples from our training material
| hq2.py | Python / Qt. Popup windows, Button Widgets, slots and signals |
| hq3.py | Python Qt - Widgets, Geometry layouts, slots and signals |
| pyqthello.py | Hello World - Python and Qt GUI |
| qupdown.py | Altering a label as a result of button presses - Python Qt |
Background information
This module is available under an
Open Training Notes License for free download from
http://www.training-notes.co.uk.
Topics covered in this module
Introduction to Qt and other Python GUIs.
The Component parts of using Python with Qt.
Installation summary.
Hello Python GUI world.
Widgets, geometry, events, signals, slots....
QWidgets.
QLayouts.
QEvents.
A simple but practical control.
Where to learn the use of Python/Qt applications.
BlackAdder.
Complete learning
If you are looking for a complete course and not just a information on a single subject, visit our
Listing and schedule page.
Well House Consultants specialise in training courses in
Python,
Perl,
PHP, and
MySQL. We run
Private Courses throughout the UK (and beyond for longer courses), and
Public Courses at our training centre in Melksham, Wiltshire, England.
It's surprisingly cost effective to come on our public courses -
even if
you live in a different
country or continent to us.
We have a technical library of over 700 books on the subjects on which we teach.
These books are available for reference at our training centre. Also
available is the Opentalk
Forum for discussion of technical questions.