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 preceding code, you can see that the two subwindows with the default objectName properties, subwindow and subwindow_2, are added to the MdiArea widget. After that, the four menu options with objectName properties, actionSubWindow_View, actionTabbed_View, actionCascade_View, and actionTile_View are connected to the four methods SubWindow_View, Tabbed_View, cascadeArrange, and tileArrange respectively. Hence, when the SubWindow View menu option is selected by the user, the SubWindow_View method will be invoked. In the SubWindow_View method, the SubWindow View mode is activated by passing the 0 constant value to the setViewMode method of the MdiArea widget. The SubWindow View displays subwindows with window frames.

Similarly, ...

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