示例#1
0
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)

        
示例#2
0
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)
示例#3
0
    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)
示例#4
0
    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)