tsimplification - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 9a9e7c1b7c5788b4f3eead413c9b2163df5280e5 DIR parent d55aa43cf683fed79411494ecd081bf3d196037a HTML Author: ThomasV <thomasv@gitorious> Date: Tue, 20 Nov 2012 18:19:37 +0100 simplification Diffstat: M electrum | 2 -- M lib/gui.py | 3 --- M lib/gui_android.py | 1 - M lib/gui_lite.py | 1 + M lib/gui_qt.py | 3 --- M lib/gui_text.py | 2 -- 6 files changed, 1 insertion(+), 11 deletions(-) --- DIR diff --git a/electrum b/electrum t@@ -224,8 +224,6 @@ if __name__ == '__main__': gui.create_wallet() - interface.register_callback('peers', gui.server_list_changed) - verifier = WalletVerifier(interface, config) wallet.set_verifier(verifier) WalletSynchronizer(wallet, config).start() DIR diff --git a/lib/gui.py b/lib/gui.py t@@ -1252,9 +1252,6 @@ class ElectrumGui(): def restore_or_create(self): return restore_create_dialog(self.wallet) - def server_list_changed(self): - pass - def seed_dialog(self): # ask for seed and gap. return run_recovery_dialog( self.wallet ) DIR diff --git a/lib/gui_android.py b/lib/gui_android.py t@@ -886,7 +886,6 @@ class ElectrumGui: interface.register_callback('disconnected', update_callback) interface.register_callback('disconnecting', update_callback) - def server_list_changed(self): pass def main(self, url): s = 'main' DIR diff --git a/lib/gui_lite.py b/lib/gui_lite.py t@@ -89,6 +89,7 @@ class ElectrumGui(QObject): self.config = config self.check_qt_version() self.app = QApplication(sys.argv) + self.wallet.interface.register_callback('peers', self.server_list_changed) def check_qt_version(self): DIR diff --git a/lib/gui_qt.py b/lib/gui_qt.py t@@ -1539,9 +1539,6 @@ class ElectrumGui: if app is None: self.app = QApplication(sys.argv) - def server_list_changed(self): - pass - def restore_or_create(self): msg = _("Wallet file not found.")+"\n"+_("Do you want to create a new wallet, or to restore an existing one?") DIR diff --git a/lib/gui_text.py b/lib/gui_text.py t@@ -42,8 +42,6 @@ class ElectrumGui: self.tab_names = [_("History"), _("Send"), _("Receive"), _("Contacts"), _("Wall")] self.num_tabs = len(self.tab_names) - def server_list_changed(self): - pass def restore_or_create(self): pass