electrum

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

commit a296350994cd38aff18337c9619a77722c97cdfc
parent 76d2d1d7297da420897a901276a7042d48f574f5
Author: Maran <maran.hidskes@gmail.com>
Date:   Mon, 10 Dec 2012 12:00:40 +0100

Implements feature to copy mpk to your clipboard to the lite gui, fixes #51

Diffstat:
Mlib/gui_lite.py | 11+++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/lib/gui_lite.py b/lib/gui_lite.py @@ -270,8 +270,6 @@ class MiniWindow(QDialog): electrum_menu.addSeparator() - brain_seed = electrum_menu.addAction(_("&BrainWallet Info")) - brain_seed.triggered.connect(self.actuator.show_seed_dialog) quit_option = electrum_menu.addAction(_("&Quit")) quit_option.triggered.connect(self.close) @@ -283,6 +281,9 @@ class MiniWindow(QDialog): export_csv = extra_menu.addAction( _("&Export transactions to CSV") ) export_csv.triggered.connect(self.actuator.csv_transaction) + + master_key = extra_menu.addAction( _("Copy master public key to clipboard") ) + master_key.triggered.connect(self.actuator.copy_master_public_key) expert_gui = view_menu.addAction(_("&Classic GUI")) expert_gui.triggered.connect(expand_callback) @@ -842,6 +843,12 @@ class MiniActuator: """Check if bitcoin address is valid.""" return self.wallet.is_valid(address) + def copy_master_public_key(self): + master_pubkey = self.wallet.master_public_key + qApp.clipboard().setText(master_pubkey) + QMessageBox.information(None,"Copy succesful", "Your public master key has been copied to your clipboard.") + + def acceptbit(self, currency): master_pubkey = self.wallet.master_public_key url = "http://acceptbit.com/mpk/%s/%s" % (master_pubkey, currency)