electrum

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

commit 585a9b7b40b52924e159c4741305cc4a0585b7bd
parent c325f95a92205c11739545454791bf326bd14d2e
Author: ThomasV <thomasv@gitorious>
Date:   Sat, 14 Mar 2015 13:45:27 +0100

copy receive URI with button

Diffstat:
Mgui/qt/main_window.py | 9++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/gui/qt/main_window.py b/gui/qt/main_window.py @@ -744,7 +744,7 @@ class ElectrumWindow(QMainWindow): self.copy_button = QPushButton() self.copy_button.setIcon(QIcon(":icons/copy.png")) self.copy_button.setToolTip(_("Copy to clibboard")) - self.copy_button.clicked.connect(lambda: self.app.clipboard().setText(self.receive_address_e.text())) + self.copy_button.clicked.connect(lambda: self.app.clipboard().setText(self.get_receive_URI())) self.receive_message_e = QLineEdit() grid.addWidget(QLabel(_('Message')), 1, 0) @@ -812,6 +812,13 @@ class ElectrumWindow(QMainWindow): self.update_receive_tab() self.clear_receive_tab() + def get_receive_URI(self): + addr = str(self.receive_address_e.text()) + amount = self.receive_amount_e.get_amount() + message = unicode(self.receive_message_e.text()) + URI = util.create_URI(addr, amount, message) + return URI + def receive_list_menu(self, position): item = self.receive_list.itemAt(position) addr = str(item.text(2))