From b8b2840d18c9f9274bd8191feb258671a6b1c45b Mon Sep 17 00:00:00 2001 From: ThomasV Date: Sat, 31 Oct 2015 15:12:34 +0100 Subject: [PATCH] kivy: sign and send in a thread --- gui/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 index cc39eab8..83c3c985 100644 --- 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: