O'Reilly logo

Introduction to Python® Programming and Developing GUI Applications with PyQT by B. M. Harwani

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 11. Multiple Documents and Layouts

Until now you have been dealing with a single-document interface. In this chapter you will learn how to manage multiple documents in a main window with MDI. Also, you will learn to organize widgets in different layouts. This chapter covers the following:

  • A multiple-document interface

  • Layouts

  • Displaying widgets collectively through Group Box Let’s begin the chapter with the concept of a multiple-document interface.

Multiple-Document Interface

Applications that provide one document per main window are said to be SDI (single-document interface) applications. A multiple-document interface (MDI) consists of a main window containing a menu bar, a toolbar, and a central QWorkspace widget. The job of the central workspace ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required