Beginning PyQt (tutorial, PyCon Ireland 2011) – slides and code

Tutorial delivered at PyCon Ireland 2011.

This was a quick introduction to developing a GUI using PyQt.
I used the sphinx-build command from the Sphinx
documentation project as an example.

The basic command for generating HTML documentation from source
files is

sphinx-build sourcedir outdir

A GUI(dialog) was designed using Qt Designer to replicate the functionality
of the command above. This was then converted into Python code and then a main
application was written to make use of the dialog.

sphinx-build-qt dialog

Slides for the talk: slides.pdf
Code repository: https://github.com/vkvn/sphinx-build-qt/

You can clone the repo using

git clone git://github.com/vkvn/sphinx-build-qt.git

This code works unaltered on Windows too. Thanks to Qt! You would need to have the
C:\Python2*\Scripts in your PATH or wherever you’ve got sphinx-build installed.

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s