diff options
author | louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13> | 2010-01-31 05:33:54 +0000 |
---|---|---|
committer | louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13> | 2010-01-31 05:33:54 +0000 |
commit | 9faeb0674c012383a2d01a9c17d97f94cc5a5897 (patch) | |
tree | e771a9985aca4a461f01f2af684ff8c44b1a3223 /src/window.py | |
parent | 6f34406477714668898e7a711e96268e2549d6c0 (diff) | |
download | poezio-9faeb0674c012383a2d01a9c17d97f94cc5a5897.tar.gz poezio-9faeb0674c012383a2d01a9c17d97f94cc5a5897.tar.bz2 poezio-9faeb0674c012383a2d01a9c17d97f94cc5a5897.tar.xz poezio-9faeb0674c012383a2d01a9c17d97f94cc5a5897.zip |
cleanup, launch.sh, makefile
Diffstat (limited to 'src/window.py')
-rw-r--r-- | src/window.py | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/window.py b/src/window.py index 27ba0ff4..2e51552a 100644 --- a/src/window.py +++ b/src/window.py @@ -20,21 +20,6 @@ import curses from logging import logger -def get_next_line(str, length): - pos = str.rfind(' ', 0, length) - if pos == -1: - return str[:length], str[length:] - else: - return str[:pos], str[pos+1:] - -def cut_line(str, length): - tab = [] - while len(str) > length: - cut, str = get_next_line(str, length) - tab.append(cut) - tab.append(str) - return tab - class Win(object): def __init__(self, height, width, y, x, parent_win): self._resize(height, width, y, x, parent_win) |