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()
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 = ""
def msgBox(text, icon=QMessageBox.Information): x = QMessageBox() x.setText(text) x.setIcon(icon) x.exec()