Installation
• Windows: pyqt.sourceforge.net
• OS X: brew install pyqt5
• Linux: Use the force package manager
18
Slide 19
Slide 19 text
If you haven’t done it
yet, it’s too late.
Slide 20
Slide 20 text
The Run Loop
20
Launch
Initialise
W
ait for events
Handle events
Quit
Slide 21
Slide 21 text
Launch
Initialise
W
ait for events
Handle events
Quit
The Run Loop
21
Slide 22
Slide 22 text
Demo #1
I’m using PyQt 5.3 on OS X.
Source: https://gist.github.com/uranusjr/f55c8a5622c80c29732a
Slide 23
Slide 23 text
Qt Widgets
• Not covering QML today
• Basic GUI components
• “Top level” vs “Child widgets”
23
Slide 24
Slide 24 text
Demo #2
Widgets within widgets are children of widgets.
Source: https://gist.github.com/uranusjr/f55c8a5622c80c29732a
Slide 25
Slide 25 text
Signals & Slots
• When something happen, a
signal is emitted
• Slots can be connected to
signals
• When a signal emits, all slots
connected to it are called
25
Slide 26
Slide 26 text
Demo #3
Simon says: Open sesame!
Source: https://gist.github.com/uranusjr/f55c8a5622c80c29732a
Slide 27
Slide 27 text
Layouts
• Horizontal, vertical, grid
• Alignment, ratio, fill rule
• Nest them to create complex
layouts!
27
Slide 28
Slide 28 text
Demo #4
Get your widgets in a row. Or a column. Or whatever you wish.
Source: https://gist.github.com/uranusjr/f55c8a5622c80c29732a
Slide 29
Slide 29 text
Qt Essentials
• Basic modules
• Core, Test
• Modules based on other libraries
• Multimedia, Network, SQL, WebKit
• GUI modules
• Widgets, Utility Widgets, QML, Quick
29