tkivy: sign and send in a thread - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit b8b2840d18c9f9274bd8191feb258671a6b1c45b DIR parent 77d6ee74f9910c27fe9c4eaa994e63b818d9426b HTML Author: ThomasV <thomasv@electrum.org> Date: Sat, 31 Oct 2015 15:12:34 +0100 kivy: sign and send in a thread Diffstat: M gui/kivy/uix/screens.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) --- DIR diff --git a/gui/kivy/uix/screens.py b/gui/kivy/uix/screens.py t@@ -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 t@@ -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: