From 8b6c0c5a2e73e35921ff108fd2b81aaa4286b855 Mon Sep 17 00:00:00 2001 From: Florent Le Coz Date: Tue, 25 Jan 2011 21:38:31 +0100 Subject: data-forms: an help message --- src/windows.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/windows.py') diff --git a/src/windows.py b/src/windows.py index 3fdf62f7..546b4be3 100644 --- a/src/windows.py +++ b/src/windows.py @@ -650,7 +650,9 @@ class HelpText(Win): def resize(self, height, width, y, x, stdscr): self._resize(height, width, y, x, stdscr) - def refresh(self): + def refresh(self, txt=None): + if txt: + self.txt = txt with g_lock: self._win.erase() self.addstr(0, 0, self.txt[:self.width-1], curses.color_pair(theme.COLOR_INFORMATION_BAR)) -- cgit v1.2.3