Our next customization to our application is to add the functionality to display an about box. An about box is a dialog box that displays credits and revision information about the application. It may also include the 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 the click signal of this button, we call a slot which will display the About box to the user. The code for this is as follows:
def setAboutButton(self): """ Function to set About Button """ self.aboutButton = QPushButton("About", self) self.aboutButton.move(100, 100) self.aboutButton.clicked.connect(self...