1
0

wizard: imports, flake

This commit is contained in:
Sander van Grieken
2023-08-01 14:59:58 +02:00
parent a6aff1ec07
commit c99f71aefc
3 changed files with 18 additions and 5 deletions

View File

@@ -1,5 +1,5 @@
from abc import abstractmethod
from typing import Dict, Any
from typing import TYPE_CHECKING
from PyQt5.QtCore import Qt, QTimer, pyqtSignal, pyqtSlot, QSize
from PyQt5.QtGui import QPixmap
@@ -10,6 +10,9 @@ from electrum.i18n import _
from ..util import Buttons, icon_path
from electrum.logging import get_logger
if TYPE_CHECKING:
from electrum.simple_config import SimpleConfig
class QEAbstractWizard(QDialog):
_logger = get_logger(__name__)
@@ -88,7 +91,10 @@ class QEAbstractWizard(QDialog):
view = self.start_wizard()
self.load_next_component(view)
def load_next_component(self, view, wdata={}):
def load_next_component(self, view, wdata=None):
if wdata is None:
wdata = {}
comp = self.view_to_component(view)
try:
page = comp(self.main_widget, self)