electrum

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

commit b8b2840d18c9f9274bd8191feb258671a6b1c45b
parent 77d6ee74f9910c27fe9c4eaa994e63b818d9426b
Author: ThomasV <thomasv@electrum.org>
Date:   Sat, 31 Oct 2015 15:12:34 +0100

kivy: sign and send in a thread

Diffstat:
Mgui/kivy/uix/screens.py | 7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/gui/kivy/uix/screens.py b/gui/kivy/uix/screens.py @@ -3,6 +3,7 @@ from decimal import Decimal import re import datetime import traceback, sys +import threading from kivy.app import App from kivy.cache import Cache @@ -215,7 +216,11 @@ class SendScreen(CScreen): outputs = [('address', to_address, amount)] self.app.password_dialog(self.send_tx, (outputs, fee, label)) - def send_tx(self, outputs, fee, label, password): + def send_tx(self, *args): + self.app.show_info("Sending...") + threading.Thread(target=self.send_tx_thread, args=args).start() + + def send_tx_thread(self, outputs, fee, label, password): # make unsigned transaction coins = self.app.wallet.get_spendable_coins() try: