Ejemplo n.º 1
0
    def __init__(self,
                 err_type=None,
                 err_value=None,
                 err_traceback=None,
                 parent=None):
        QtGui.QWidget.__init__(self, parent)

        if err_type is None and err_value is None and err_traceback is None:
            err_type, err_value, err_traceback = sys.exc_info()[:3]

        self._exc_info = err_type, err_value, err_traceback
        ui_file_name = os.path.join(os.path.dirname(__file__), "ui",
                                    "errorpanel.ui")
        uic.loadUi(ui_file_name, baseinstance=self)
        self.detailsWidget.setVisible(False)
        self.checkBox.setVisible(False)
        self.checkBox.setCheckState(QtCore.Qt.Unchecked)
        self._initReportCombo()

        self.showDetailsButton.toggled.connect(self._onShowDetails)
        self.reportComboBox.activated.connect(self._onReportTriggered)

        self.setIcon(Icon("emblem-important"))

        if err_value is not None:
            self.setError(*self._exc_info)
        self.adjustSize()
Ejemplo n.º 2
0
    def __init__(self, parent=None):
        QtGui.QDialog.__init__(self, parent)

        ui_file_name = os.path.join(os.path.dirname(__file__), "ui", "sendmailform.ui")
        uic.loadUi(ui_file_name, baseinstance=self)
        self.buttonBox.accepted.connect(self.accept)
        self.buttonBox.rejected.connect(self.reject)
        self.editMessage.setFont(QtGui.QFont("Monospace"))
Ejemplo n.º 3
0
    def __init__(self, parent=None):
        QtGui.QDialog.__init__(self, parent)

        ui_file_name = os.path.join(os.path.dirname(__file__), 'ui',
                                    'sendmailform.ui')
        uic.loadUi(ui_file_name, baseinstance=self)
        self.buttonBox.accepted.connect(self.accept)
        self.buttonBox.rejected.connect(self.reject)
        self.editMessage.setFont(QtGui.QFont("Monospace"))
Ejemplo n.º 4
0
    def __init__(self, err_type=None, err_value=None, err_traceback=None, parent=None):
        QtGui.QWidget.__init__(self, parent)

        if err_type is None and err_value is None and err_traceback is None:
            err_type, err_value, err_traceback = sys.exc_info()[:3]

        self._exc_info = err_type, err_value, err_traceback
        ui_file_name = os.path.join(os.path.dirname(__file__), "ui", "errorpanel.ui")
        uic.loadUi(ui_file_name, baseinstance=self)
        self.detailsWidget.setVisible(False)
        self.checkBox.setVisible(False)
        self.checkBox.setCheckState(QtCore.Qt.Unchecked)
        self._initReportCombo()

        self.showDetailsButton.toggled.connect(self._onShowDetails)
        self.reportComboBox.activated.connect(self._onReportTriggered)

        self.setIcon(Icon("emblem-important"))

        if err_value is not None:
            self.setError(*self._exc_info)
        self.adjustSize()