class GeneralWarning(QDialog) : """ Class to manage the dialog to get the property number Author: Roy Nielsen """ def __init__(self, parent=None) : """ Initialization method Author: Roy Nielsen """ super(GeneralWarning, self).__init__(parent) self.ui = Ui_GeneralWarning() self.message_level = "debug" self.ui.setupUi(self) self.connect(self.ui.buttonBox, SIGNAL("accepted()"), self.accept) log_message("Finished initializing NotOnCorrectDisk Class...", "debug", self.message_level) def setWarningMessage(self, message="") : """ Set the warning message label Author: Roy Nielsen """ self.ui.label.setText(message) """ def setWindowTitle(self, title="") : "" Set the window title for the warning Author: Roy Nielsen "" self.setWindowTitle(_fromUtf8(str(title))) """ def setOpenExternalLinks(self) : """ Set the window to open external web links Author: Roy Nielsen """ self.ui.label.setOpenExternalLinks(True)
class GeneralWarning(QDialog): """ Class to manage the dialog to get the property number Author: Roy Nielsen """ def __init__(self, parent=None): """ Initialization method Author: Roy Nielsen """ super(GeneralWarning, self).__init__(parent) self.ui = Ui_GeneralWarning() self.message_level = "debug" self.ui.setupUi(self) self.connect(self.ui.buttonBox, SIGNAL("accepted()"), self.accept) log_message("Finished initializing NotOnCorrectDisk Class...", "debug", self.message_level) def setWarningMessage(self, message=""): """ Set the warning message label Author: Roy Nielsen """ self.ui.label.setText(message) """ def setWindowTitle(self, title="") : "" Set the window title for the warning Author: Roy Nielsen "" self.setWindowTitle(_fromUtf8(str(title))) """ def setOpenExternalLinks(self): """ Set the window to open external web links Author: Roy Nielsen """ self.ui.label.setOpenExternalLinks(True)
def __init__(self, parent=None): """ Initialization method Author: Roy Nielsen """ super(GeneralWarning, self).__init__(parent) self.ui = Ui_GeneralWarning() self.message_level = "debug" self.ui.setupUi(self) self.connect(self.ui.buttonBox, SIGNAL("accepted()"), self.accept) log_message("Finished initializing NotOnCorrectDisk Class...", "debug", self.message_level)
def __init__(self, parent=None) : """ Initialization method Author: Roy Nielsen """ super(GeneralWarning, self).__init__(parent) self.ui = Ui_GeneralWarning() self.message_level = "debug" self.ui.setupUi(self) self.connect(self.ui.buttonBox, SIGNAL("accepted()"), self.accept) log_message("Finished initializing NotOnCorrectDisk Class...", "debug", self.message_level)