|
|
|
|
@ -10,7 +10,7 @@ from PyQt5.QtWidgets import (QDialog, QPushButton, QWidget, QLabel, QVBoxLayout,
|
|
|
|
|
|
|
|
|
|
from electrum.i18n import _ |
|
|
|
|
from electrum.logging import get_logger |
|
|
|
|
from electrum.gui.qt.util import Buttons, icon_path, MessageBoxMixin |
|
|
|
|
from electrum.gui.qt.util import Buttons, icon_path, MessageBoxMixin, WWLabel |
|
|
|
|
|
|
|
|
|
if TYPE_CHECKING: |
|
|
|
|
from electrum.simple_config import SimpleConfig |
|
|
|
|
@ -58,7 +58,7 @@ class QEAbstractWizard(QDialog, MessageBoxMixin):
|
|
|
|
|
error_l = QLabel(_("Error!")) |
|
|
|
|
error_l.setAlignment(Qt.AlignCenter) |
|
|
|
|
error_layout.addWidget(error_l) |
|
|
|
|
self.error_msg = QLabel() |
|
|
|
|
self.error_msg = WWLabel() |
|
|
|
|
self.error_msg.setAlignment(Qt.AlignCenter) |
|
|
|
|
error_layout.addWidget(self.error_msg) |
|
|
|
|
error_layout.addStretch(1) |
|
|
|
|
@ -161,6 +161,7 @@ class QEAbstractWizard(QDialog, MessageBoxMixin):
|
|
|
|
|
page = self.main_widget.currentWidget() |
|
|
|
|
self.title.setText(f'<b>{page.title}</b>' if page.title else '') |
|
|
|
|
self.back_button.setText(_('Back') if self.can_go_back() else _('Cancel')) |
|
|
|
|
self.back_button.setEnabled(not page.busy) |
|
|
|
|
self.next_button.setText(_('Next') if not self.is_last(page.wizard_data) else _('Finish')) |
|
|
|
|
self.next_button.setEnabled(page.valid) |
|
|
|
|
self.main_widget.setVisible(not page.busy and not bool(page.error)) |
|
|
|
|
|