Skip to Main Content
Qt5 Python GUI Programming Cookbook
book

Qt5 Python GUI Programming Cookbook

by B. M. Harwani
July 2018
Intermediate to advanced content levelIntermediate to advanced
462 pages
12h 2m
English
Packt Publishing
Content preview from Qt5 Python GUI Programming Cookbook

How to do it...

In this application, we will prompt the user to enter an email address and password. The main focus of this recipe is to understand how two pairs of the Label and Line Edit widgets are horizontally aligned. Here is the step-by-step procedure to create this application:

  1. Let's create an application based on the Dialog without Buttons template and add two QLabel, two QlineEdit, and one QPushButton widget to the form by dragging and dropping two Label, two Line Edit, and a Push Button widget on the form.
  2. Set the text property of the two Label widgets to Name and Email Address.
  3. Also, set the text property of the Push Button widget to Submit.
  4. As the purpose of this application is to understand the layout and nothing else, we won't ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Python GUI Programming Cookbook - Third Edition

Python GUI Programming Cookbook - Third Edition

Burkhard Meier

Publisher Resources

ISBN: 9781788831000Supplemental Content