trestore_or_create (just delegates to qt_gui - this needs cleanup & abstraction away) - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 6cda0bc0069c8d1cea2270c6dbe348e03c8f88fd DIR parent aeed15e3a5da6d60efd3b351a9fcfaf8dd32c838 HTML Author: Amir Taaki <genjix@riseup.net> Date: Wed, 4 Jul 2012 01:10:04 +0200 restore_or_create (just delegates to qt_gui - this needs cleanup & abstraction away) Diffstat: M lib/gui_lite.py | 4 ++++ M lib/gui_qt.py | 7 ++++--- 2 files changed, 8 insertions(+), 3 deletions(-) --- DIR diff --git a/lib/gui_lite.py b/lib/gui_lite.py t@@ -71,6 +71,10 @@ class ElectrumGui: QMessageBox.No) 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): def __init__(self, actuator, expand_callback): DIR diff --git a/lib/gui_qt.py b/lib/gui_qt.py t@@ -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.app = QApplication(sys.argv) + if app is None: + self.app = QApplication(sys.argv) def waiting_dialog(self):