ttext gui: fixes - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit ca481c84da01644deb67718e6305976f1ca307b9 DIR parent 2337a2b3046e4bbe32fe6d37c23deadd8f05a4b0 HTML Author: ThomasV <thomasv@gitorious> Date: Thu, 8 Nov 2012 00:00:33 +0100 ttext gui: fixes Diffstat: M lib/gui_text.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) --- DIR diff --git a/lib/gui_text.py b/lib/gui_text.py t@@ -237,7 +237,7 @@ class ElectrumGui: self.str_amount = '' self.str_recipient = '' self.str_fee = '' - + self.str_description = '' def do_send(self): if not self.wallet.is_valid(self.str_recipient): t@@ -262,31 +262,31 @@ class ElectrumGui: password = None try: - tx = self.wallet.mktx( to_address, amount, label, password, fee) + tx = self.wallet.mktx( self.str_recipient, amount, self.str_description, password, fee) except BaseException, e: self.show_message(str(e)) return h = self.wallet.send_tx(tx) - self.show_message(_("Please wait...")) + self.show_message(_("Please wait..."), getchar=False) self.wallet.tx_event.wait() status, msg = self.wallet.receive_tx( h ) if status: - self.show_message(_('Payment sent.')+'\n'+msg, _('OK')) + self.show_message(_('Payment sent.')) self.do_clear() self.update_contacts_tab() else: - self.show_message(_('Error:')+ msg) + self.show_message(_('Error')) - def show_message(self, message): + def show_message(self, message, getchar = True): w = self.w w.clear() w.border(0) w.addstr(2,2,message) w.refresh() - c = self.stdscr.getch() + if getchar: c = self.stdscr.getch() def run_popup(self, title, items): t@@ -315,7 +315,7 @@ class ElectrumGui: out = self.run_dialog('Password', [ {'label':'Password', 'type':'str'} ], buttons = 1) - return out + return out.get('Password') def run_dialog(self, title, items, interval=2, buttons=None, y_pos=3):