Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class AboutPopup(QWidget):
- """
- Widget class to show the About popup
- """
- def __init__(self):
- super(AboutPopup, self).__init__()
- self.setWindowTitle("About")
- self.setFixedWidth(300)
- layout = QGridLayout(self)
- # Create label to display the application icon
- self.image = QLabel(self)
- self.image.setPixmap(QPixmap("img/tools.png"))
- self.image.setAlignment(Qt.AlignCenter)
- # Create label to display the application version
- self.version = QLabel(self)
- self.version.setText("Version 1.0.1")
- self.version.setAlignment(Qt.AlignCenter)
- # Create label to display the application author
- self.author = QLabel(self)
- self.author.setText("Developed by Flora Huot")
- self.author.setAlignment(Qt.AlignCenter)
- # Arrange labels in the grid layout
- layout.addWidget(self.image, 0, 0, 1, 4)
- layout.addWidget(self.version, 1, 0, 1, 4)
- layout.addWidget(self.author, 3, 0, 1, 4)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement