From 9faeb0674c012383a2d01a9c17d97f94cc5a5897 Mon Sep 17 00:00:00 2001 From: "louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13" Date: Sun, 31 Jan 2010 05:33:54 +0000 Subject: cleanup, launch.sh, makefile --- src/window.py | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'src/window.py') 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) -- cgit v1.2.3