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

Get Python GUI Programming - A Complete Reference Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.