electrum

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

commit 2216b6e127407bea8b09395708df62788e99552d
parent 0fe5e5c516fa10ab1c398df1ff73c2cb6d9e342f
Author: ThomasV <thomasv@gitorious>
Date:   Sat, 15 Dec 2012 14:21:46 +0100

do not refresh after main loop finished

Diffstat:
Mlib/gui_text.py | 7++++---
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/lib/gui_text.py b/lib/gui_text.py @@ -136,6 +136,7 @@ class ElectrumGui: self.stdscr.addstr( i+2, 1, msg[0:self.maxx - 2], curses.A_REVERSE if i == (self.pos % self.maxpos) else 0) def refresh(self): + if self.tab == -1: return self.stdscr.border(0) self.print_balance() self.stdscr.refresh() @@ -224,9 +225,9 @@ class ElectrumGui: self.run_tab(4, self.print_banner, self.run_banner_tab) tty.setcbreak(sys.stdin) - curses.nocbreak(); - self.stdscr.keypad(0); - curses.echo() + curses.nocbreak() + self.stdscr.keypad(0) + curses.echo() curses.endwin()