PyQt5 Multi Document Interface (MDI) Application Example & Introduction

Published: 12 November 2019
on channel: Parwiz Forogh
19,532
206

Join PyQt6 13 Hours Course in Udemy
https://www.udemy.com/course/python-g...

Coupon Code:
1F72537C6B89AE6F6FB2

My Affiliate Books:
Beginning PyQt: A Hands-on Approach to GUI Programming
https://amzn.to/3m8hsAZ

Create GUI Applications with PyQt5 & Qt5
https://amzn.to/3jahfLv


Python GUI Development with PyQt5
https://amzn.to/3kfVzPD



In this PyQt5 video we are going to talk about PyQt5 Multi Document Interface (MDI) Application Example & Introduction.


What is MDI & SDI Application ?


In many GUI applications, we will arrive at a situation where we need to open more than one document at a time to process them. We will want to design our application
to handle this. This can be achieved by either of two approaches, namely, SDI and MDI. A Single Document Interface (SDI) application implements this by creating
separate windows for each of the documents. This is done by creating a window subclass that handles everything by itself, including loading, saving, cleaning up, and so on. Each of the documents will be a clone of the main window having a separate menu bar, toolbar, and status bar on its own. Each of the main window instances must be able to act independently. However, there are some disadvantages to this approach. This approach consumes a lot of resources and it would be very inconvenient to open many windows at a time and keep track of them. The second approach is to use a Multiple Document Interface (MDI) application where the central widget is instantiated with multiple instances. All these widgets will be interrelated within the main window and share the common menu bar, toolbar, and other components. MDI applications will use lesser resources compared with SDI applications. The MDI applications are provided with an extra menu to manage between windows because shifting between them is not controlled by the underlying operating system.


Get the source code:
https://codeloop.org/pyqt5-make-multi...




#PyQt5#MDIApplication#PythonGUI


On this page of the site you can watch the video online PyQt5 Multi Document Interface (MDI) Application Example & Introduction with a duration of hours minute second in good quality, which was uploaded by the user Parwiz Forogh 12 November 2019, share the link with friends and acquaintances, this video has already been watched 19,532 times on youtube and it was liked by 206 viewers. Enjoy your viewing!