Fix show_error inheritance issue
This commit is contained in:
parent
e6afaf173c
commit
40ae744c1e
|
@ -54,8 +54,8 @@ class CosignWidget(QWidget):
|
||||||
qp.end()
|
qp.end()
|
||||||
|
|
||||||
|
|
||||||
# WizardBase must come first as we override show_error
|
# WindowModalDialog must come first as it overrides show_error
|
||||||
class InstallWizard(WizardBase, WindowModalDialog):
|
class InstallWizard(WindowModalDialog, WizardBase):
|
||||||
|
|
||||||
def __init__(self, config, app, plugins):
|
def __init__(self, config, app, plugins):
|
||||||
title = 'Electrum - ' + _('Install Wizard')
|
title = 'Electrum - ' + _('Install Wizard')
|
||||||
|
|
|
@ -155,7 +155,7 @@ class CancelButton(QPushButton):
|
||||||
QPushButton.__init__(self, label or _("Cancel"))
|
QPushButton.__init__(self, label or _("Cancel"))
|
||||||
self.clicked.connect(dialog.reject)
|
self.clicked.connect(dialog.reject)
|
||||||
|
|
||||||
class MessageBoxMixin:
|
class MessageBoxMixin(object):
|
||||||
def question(self, msg, parent=None, title=None, icon=None):
|
def question(self, msg, parent=None, title=None, icon=None):
|
||||||
Yes, No = QMessageBox.Yes, QMessageBox.No
|
Yes, No = QMessageBox.Yes, QMessageBox.No
|
||||||
return self.msg_box(icon or QMessageBox.Question,
|
return self.msg_box(icon or QMessageBox.Question,
|
||||||
|
|
Loading…
Reference in New Issue