electrum

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

commit 07b9029850de076d62423245d90dbb0d78228e4d
parent 8df60928eace1d9ee3f42c07d53f29a3fdd906c2
Author: thomasv <thomasv@gitorious>
Date:   Sun,  3 Mar 2013 09:52:46 +0100

plugins init_gui

Diffstat:
Mgui/gui_classic.py | 20++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/gui/gui_classic.py b/gui/gui_classic.py @@ -453,6 +453,16 @@ class ElectrumWindow(QMainWindow): # set initial message self.console.showMessage(self.wallet.banner) + #init plugins + for p in self.wallet.plugins: + try: + p.init_gui(self) + except: + import traceback + print_msg("Error:cannot initialize plugin",p) + traceback.print_exc(file=sys.stdout) + + def close(self): QMainWindow.close(self) if self.qr_window: @@ -1332,16 +1342,6 @@ class ElectrumWindow(QMainWindow): self.console.history = self.config.get("console-history",[]) self.console.history_index = len(self.console.history) - #init plugins - for p in self.wallet.plugins: - try: - p.init_console(self.console, self) - except: - import traceback - print_msg("Error:cannot initialize plugin",p) - traceback.print_exc(file=sys.stdout) - - console.updateNamespace({'wallet' : self.wallet, 'interface' : self.wallet.interface, 'gui':self}) console.updateNamespace({'util' : util, 'bitcoin':bitcoin})