tTweaks for new plugin giving self - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 14dcf8840972e6b68a6111153e31fb2cdfeca66e DIR parent ca6890a622b9ee3f368c1bacdd1bce30869e4cbf HTML Author: Maran <maran.hidskes@gmail.com> Date: Tue, 12 Mar 2013 21:38:06 +0100 Tweaks for new plugin giving self Diffstat: M gui/gui_classic.py | 4 ++-- M plugins/labels.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) --- DIR diff --git a/gui/gui_classic.py b/gui/gui_classic.py t@@ -2051,7 +2051,7 @@ class ElectrumWindow(QMainWindow): traceback.print_exc(file=sys.stdout) grid_plugins.setRowStretch(i+1,1) - self.run_hook('create_settings_tab', (self,tabs,)) + self.run_hook('create_settings_tab', (tabs,)) vbox.addLayout(ok_cancel_buttons(d)) d.setLayout(vbox) t@@ -2115,7 +2115,7 @@ class ElectrumWindow(QMainWindow): self.config.set_key('currency', cur_request, True) self.update_wallet() - self.run_hook('close_settings_dialog', (self,)) + self.run_hook('close_settings_dialog', ()) if need_restart: QMessageBox.warning(self, _('Success'), _('Please restart Electrum to activate the new GUI settings'), _('OK')) DIR diff --git a/plugins/labels.py b/plugins/labels.py t@@ -47,7 +47,7 @@ def wallet_id(): global config return hashlib.sha256(str(config.get("master_public_key"))).digest().encode('hex') -def set_label(item,label, changed): +def set_label(gui, item,label, changed): if not changed: return