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 it works...

The clicked() event of pushButtonAdd is connected to the addlist function. Similarly, the clicked() event of the pushButtonEdit, pushButtonDelete, and pushButtonDeleteAll objects are connected to the editlist, delitem, and delallitems functions, respectively. That is, on clicking any push button, the respective function is invoked. The addlist function calls the addItem function on the List Widget item to add the text entered in the Line Edit widget. The editlist function uses the currentRow method on List Widget to find out the list item to be edited. The getText method of the QInputDialog class is invoked to prompt the user for the new text or edited text. On clicking the OK button in the dialog, the current list item will ...

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