qt: replace QStackedWidget with custom ResizableStackedWidget, remove unused imports in util
This commit is contained in:
@@ -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, WWLabel
|
||||
from electrum.gui.qt.util import Buttons, icon_path, MessageBoxMixin, WWLabel, ResizableStackedWidget
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from electrum.simple_config import SimpleConfig
|
||||
@@ -40,7 +40,7 @@ class QEAbstractWizard(QDialog, MessageBoxMixin):
|
||||
|
||||
self.title = QLabel()
|
||||
|
||||
self.main_widget = QStackedWidget(self)
|
||||
self.main_widget = ResizableStackedWidget(self)
|
||||
|
||||
self.back_button = QPushButton(_("Back"), self)
|
||||
self.back_button.clicked.connect(self.on_back_button_clicked)
|
||||
|
||||
Reference in New Issue
Block a user