示例#1
0
def msgBox(text, icon=QMessageBox.Information, title=""):
    """
    :param text:
    :param icon:
    :param title:
    """
    x = QMessageBox()
    if title: x.setWindowTitle(title)
    x.setText(text)
    x.setIcon(icon)
    x.exec()
示例#2
0
 def onDelChannelEvent(self, schid, channel, invokerID, invokerName,
                       invokerUniqueIdentifier):
     if self.schid == schid and self.channel == channel:
         msgBox = QMessageBox()
         msgBox.setText(
             "Channel \"{0}\" got deleted by \"{1}\"\n\nStopping Queue!".
             format(self.cname, invokerName))
         msgBox.setIcon(QMessageBox.Warning)
         msgBox.exec()
         self.schid = 0
         self.channel = 0
         self.password = ""
         self.name = ""
示例#3
0
def msgBox(text, icon=QMessageBox.Information):
    x = QMessageBox()
    x.setText(text)
    x.setIcon(icon)
    x.exec()