mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-28 16:01:30 +00:00
restore_or_create (just delegates to qt_gui - this needs cleanup & abstraction away)
This commit is contained in:
parent
aeed15e3a5
commit
6cda0bc006
2 changed files with 8 additions and 3 deletions
|
@ -71,6 +71,10 @@ class ElectrumGui:
|
||||||
QMessageBox.No)
|
QMessageBox.No)
|
||||||
return choice == QMessageBox.Yes
|
return choice == QMessageBox.Yes
|
||||||
|
|
||||||
|
def restore_or_create(self):
|
||||||
|
qt_gui_object = gui_qt.ElectrumGui(self.wallet, self.app)
|
||||||
|
return qt_gui_object.restore_or_create()
|
||||||
|
|
||||||
class MiniWindow(QDialog):
|
class MiniWindow(QDialog):
|
||||||
|
|
||||||
def __init__(self, actuator, expand_callback):
|
def __init__(self, actuator, expand_callback):
|
||||||
|
|
|
@ -1410,11 +1410,12 @@ class ElectrumWindow(QMainWindow):
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class ElectrumGui():
|
class ElectrumGui:
|
||||||
|
|
||||||
def __init__(self, wallet):
|
def __init__(self, wallet, app=None):
|
||||||
self.wallet = wallet
|
self.wallet = wallet
|
||||||
self.app = QApplication(sys.argv)
|
if app is None:
|
||||||
|
self.app = QApplication(sys.argv)
|
||||||
|
|
||||||
def waiting_dialog(self):
|
def waiting_dialog(self):
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue