Browse Source

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

283
Maran 12 years ago
parent
commit
a296350994
  1. 11
      lib/gui_lite.py

11
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)
@ -284,6 +282,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)
themes_menu = view_menu.addMenu(_("&Themes"))
@ -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)

Loading…
Cancel
Save