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

In the callFileDialog.pyw file, you can see that the click() event of the Open menu item with objectName, actionOpen, is connected to the openFileDialog method; when the user clicks the Open menu item, the openFileDialog method will be invoked. Similarly, the click() event of the Save menu item with objectName, actionSave, is connected to the saveFileDialog method; when the user clicks the Save menu item, the saveFileDialog method will be invoked.

In the openFileDialog method, the open file dialog is opened by invoking the getOpenFileName method of the QFileDialog class. The open file dialog enables the user to browse the directories and choose the desired file to open. After selecting the file, when the user clicks the

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