electrum

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

commit de0876af7a289d1333971ff9adc13b7a4b0f341d
parent 047e4b3478de027f2e97196ebb5099468941e684
Author: thomasv <thomasv@gitorious>
Date:   Mon,  9 Sep 2013 13:41:48 +0200

gui_text: network

Diffstat:
Mgui/gui_text.py | 13+++++++------
1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/gui/gui_text.py b/gui/gui_text.py @@ -12,16 +12,17 @@ import tty, sys class ElectrumGui: - def __init__(self, config, interface, blockchain): + def __init__(self, config, network): self.config = config + self.network = network storage = WalletStorage(config) if not storage.file_exists: print "Wallet not found. try 'electrum create'" exit() self.wallet = Wallet(storage) - self.wallet.start_threads(interface, blockchain) + self.wallet.start_threads(network) self.stdscr = curses.initscr() curses.noecho() @@ -46,10 +47,10 @@ class ElectrumGui: self.str_amount = "" self.str_fee = "" - self.wallet.interface.register_callback('updated', self.refresh) - self.wallet.interface.register_callback('connected', self.refresh) - self.wallet.interface.register_callback('disconnected', self.refresh) - self.wallet.interface.register_callback('disconnecting', self.refresh) + self.network.register_callback('updated', self.refresh) + self.network.register_callback('connected', self.refresh) + self.network.register_callback('disconnected', self.refresh) + self.network.register_callback('disconnecting', self.refresh) self.tab_names = [_("History"), _("Send"), _("Receive"), _("Contacts"), _("Wall")] self.num_tabs = len(self.tab_names)