Example #1
0
 def __init__(self):
     QMessageBox.__init__(self)
     self.setText(
         "This is a MessageBox, typically used to convey short messages to the user."
     )
     self.setInformativeText(
         "Informative text provides more space to explain the message purpose."
     )
     self.setIcon(QMessageBox.Information)
     self.setStandardButtons(QMessageBox.Close)
Example #2
0
    def __init__(self, parent=None):
        QMessageBox.__init__(self, parent)

        if not QTestHelper().is_interactive():
            self.setAttribute(Qt.WA_DontShowOnScreen)