O'Reilly logo

PySide GUI Application Development by Venkateshwaran Loganathan

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

About box

Our next customization is to add an about box to our application. An about box is a dialog box that displays credits and revision information about the application. It may also include installed version and copyright information. The QMessageBox class provides a built-in function for this. It has the following signature:

PySide.QtGui.QMessageBox.about(parent, title, text)

The parent parameter takes any valid QWidget object. The title and text can be supplied with the Unicode parameter. The about box will have a single button labeled OK. To explain its working, we will now add a button named About and on click signal of that button we call a slot which will display the About box to the user. The code for the same is as follows:

 def setAboutButton(self): ...

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