PyQt5 Simple Example

From dftwiki3
Revision as of 10:46, 13 June 2018 by Thiebaut (talk | contribs) (Created page with "~~~~ ---- <bluebox> In this tutorial we create a GUI with Qt5's '''designer,''' take the '''ui''' file resulting from it, convert it to a '''py''' file with the '''pyuic5''' u...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

D. Thiebaut (talk) 11:46, 13 June 2018 (EDT)


In this tutorial we create a GUI with Qt5's designer, take the ui file resulting from it, convert it to a py file with the pyuic5 utility, and add a custom slot associated with the clicked signal of one of the push-buttons.


The GUI


We assume that you are familiar with creating a Qt5 GUI with Designer. If not, check out this tutorial which will take you through the required steps. The tutorial assumes Qt4, but should translate easily to Qt5.

The GUI itself


The Main Window GUI is shown below. It contins a TAB widget with two tabs, both shown.

PyQt5GUI 2Tabs.png