Book Image

PySide GUI Application Development - Second Edition

By : Venkateshwaran Loganathan, Gopinath Jaganmohan
Book Image

PySide GUI Application Development - 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)

Summary


This chapter was a real rollercoaster ride as we went into the depths of PySide programming. We started with discussing event handlers and reimplementation techniques to achieve the task at hand. We also discussed event filters and reimplementing the notify() function. Unless absolutely necessary, the latter forms of reimplementing events should be avoided to make an efficient program.

We then explored a very fundamental mechanism of Qt, signals and slots. The signals and slots mechanism follows an observer pattern listening and binding to objects when called. We started with implementing the built-in signals and slots. Later in this section, we implemented and emitted our own custom signals and also discussed how to listen to them.

In the latter half, we shifted our focus to diagrams and graphics. Starting with the drag and drop functionality usage, we also saw various types of QPainter draw objects. The chapter ended with a brief discussion on graphics and effects. The examples that...