diff options
author | louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13> | 2010-02-01 20:28:33 +0000 |
---|---|---|
committer | louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13> | 2010-02-01 20:28:33 +0000 |
commit | 246761b7a8ae1bad51a7e2c7385c5e05cddebd63 (patch) | |
tree | 130f36680bd4111b6c4c5ac866873c03f36e83c8 /src | |
parent | a47b1e6fb354bbed3b4784a9ca95a10bcdad0fc8 (diff) | |
download | poezio-246761b7a8ae1bad51a7e2c7385c5e05cddebd63.tar.gz poezio-246761b7a8ae1bad51a7e2c7385c5e05cddebd63.tar.bz2 poezio-246761b7a8ae1bad51a7e2c7385c5e05cddebd63.tar.xz poezio-246761b7a8ae1bad51a7e2c7385c5e05cddebd63.zip |
/usr/bin/environ c'est mieux
Diffstat (limited to 'src')
-rw-r--r-- | src/window.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/window.py b/src/window.py index 0d42a88b..61c07378 100644 --- a/src/window.py +++ b/src/window.py @@ -26,9 +26,7 @@ class Win(object): def _resize(self, height, width, y, x, parent_win): self.height, self.width, self.x, self.y = height, width, x, y - # try: self.win = parent_win.subwin(height, width, y, x) - # except: def refresh(self): self.win.noutrefresh() @@ -98,9 +96,7 @@ class TextWin(object): def rebuild(self, lines): """ - called when the terminal is resized. - resize all the windows, clear them and rewrite - the lines in them + deprecated """ pass # TODO @@ -134,7 +130,7 @@ class TextWin(object): break try: try:win.addstr('\n['+line[0].strftime("%H:%M:%S") + "] <") - except:pass # exception happens on resize, but it doesn't change anything... + except:pass # exception happens on resize length = len('['+line[0].strftime("%H:%M:%S") + "] <") try:win.attron(curses.color_pair(user.color)) except:pass |