diff options
author | Florent Le Coz <louiz@louiz.org> | 2011-01-25 21:38:31 +0100 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2011-01-25 21:38:31 +0100 |
commit | 8b6c0c5a2e73e35921ff108fd2b81aaa4286b855 (patch) | |
tree | 6d2a317061752f3abeb016fc6cb492d4215b2a4c /src/windows.py | |
parent | 6a0346a12ae30a9449a1964260be26dc042195ce (diff) | |
download | poezio-8b6c0c5a2e73e35921ff108fd2b81aaa4286b855.tar.gz poezio-8b6c0c5a2e73e35921ff108fd2b81aaa4286b855.tar.bz2 poezio-8b6c0c5a2e73e35921ff108fd2b81aaa4286b855.tar.xz poezio-8b6c0c5a2e73e35921ff108fd2b81aaa4286b855.zip |
data-forms: an help message
Diffstat (limited to 'src/windows.py')
-rw-r--r-- | src/windows.py | 4 |
1 files changed, 3 insertions, 1 deletions
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)) |