electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 9a9e7c1b7c5788b4f3eead413c9b2163df5280e5
parent d55aa43cf683fed79411494ecd081bf3d196037a
Author: ThomasV <thomasv@gitorious>
Date:   Tue, 20 Nov 2012 18:19:37 +0100

simplification

Diffstat:
Melectrum | 2--
Mlib/gui.py | 3---
Mlib/gui_android.py | 1-
Mlib/gui_lite.py | 1+
Mlib/gui_qt.py | 3---
Mlib/gui_text.py | 2--
6 files changed, 1 insertion(+), 11 deletions(-)

diff --git a/electrum b/electrum @@ -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() diff --git a/lib/gui.py b/lib/gui.py @@ -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 ) diff --git a/lib/gui_android.py b/lib/gui_android.py @@ -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' diff --git a/lib/gui_lite.py b/lib/gui_lite.py @@ -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): diff --git a/lib/gui_qt.py b/lib/gui_qt.py @@ -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?") diff --git a/lib/gui_text.py b/lib/gui_text.py @@ -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