Book Image

Pyside GUI Application Development- Second Edition - Second Edition

By : Venkateshwaran Loganathan, Gopinath Jaganmohan
Book Image

Pyside GUI Application Development- Second Edition - Second Edition

By: Venkateshwaran Loganathan, Gopinath Jaganmohan

Overview of this book

Elegantly-built GUI applications are always a massive hit among users. PySide is an open source software project that provides Python bindings for the Qt cross-platform UI framework. Combining the power of Qt and Python, PySide provides easy access to the Qt framework for Python developers and also acts as an excellent rapid application development platform. This book will take you through everything you need to know to develop UI applications. You will learn about installing and building PySide in various major operating systems as well as the basics of GUI programming. The book will then move on to discuss event management, signals and slots, and the widgets and dialogs available with PySide. Database interaction and manipulation is also covered. By the end of this book, you will be able to program GUI applications efficiently and master how to develop your own applications and how to run them across platforms.
Table of Contents (13 chapters)

SDI and MDI


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