diff options
| author | troido <troido@hotmail.com> | 2017-11-13 14:29:54 +0100 |
|---|---|---|
| committer | troido <troido@hotmail.com> | 2017-11-13 14:29:54 +0100 |
| commit | 3fcc264ff36bc5f942d0d24af231c06e6025ae85 (patch) | |
| tree | f21787e387f215658b10acf25ca9472f9cfd9538 /asciifarm/client/display/messagepad.py | |
| parent | a29876590bf97c9cf0b1e8a8760481a435a3a46c (diff) | |
cleanup of display stuff
Diffstat (limited to 'asciifarm/client/display/messagepad.py')
| -rw-r--r-- | asciifarm/client/display/messagepad.py | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/asciifarm/client/display/messagepad.py b/asciifarm/client/display/messagepad.py index f447e44..095e53a 100644 --- a/asciifarm/client/display/messagepad.py +++ b/asciifarm/client/display/messagepad.py @@ -4,21 +4,15 @@ import textwrap class MessagePad(): - def __init__(self, maxLines=10): - #self.maxLines = maxLines - #self.pad = curses.newpad(maxLines+2, 200) + def __init__(self): self.changed = False - #self.lastView = None self.messages = [] def addMessage(self, message): self.messages.append(message) self.changed = True - #def getHeight(self): - #return self.maxLines - - def update(self, win, force=False): + def update(self, win, force): if not self.changed and not force or not win: return height, width = win.getmaxyx() @@ -33,9 +27,3 @@ class MessagePad(): win.addstr(0,0,'\n'.join(lines)) self.changed = False win.noutrefresh() - #0, - #0, - #y, - #x, - #ymax-1, - #xmax-1) |
