diff options
author | louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13> | 2010-06-12 22:47:04 +0000 |
---|---|---|
committer | louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13> | 2010-06-12 22:47:04 +0000 |
commit | 41ce0c9118fef9cd785588d03c0c2c2f044bf4d4 (patch) | |
tree | fca43d642e781f9916f8158d83f402b10d2d380c /src | |
parent | 022afc405f5d1ed438ae2cd560ffa6fbbb73be81 (diff) | |
download | poezio-41ce0c9118fef9cd785588d03c0c2c2f044bf4d4.tar.gz poezio-41ce0c9118fef9cd785588d03c0c2c2f044bf4d4.tar.bz2 poezio-41ce0c9118fef9cd785588d03c0c2c2f044bf4d4.tar.xz poezio-41ce0c9118fef9cd785588d03c0c2c2f044bf4d4.zip |
Put the list of rooms to the left of the RoomInfo bar, and the name to the right.
Diffstat (limited to 'src')
-rw-r--r-- | src/window.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/window.py b/src/window.py index e981c04e..447e5271 100644 --- a/src/window.py +++ b/src/window.py @@ -129,7 +129,7 @@ class RoomInfo(Win): def compare_room(a, b): return a.nb - b.nb self.win.erase() - self.win.addnstr(0, 0, current.name+" [", self.width + self.win.addnstr(0, 0, "[", self.width ,curses.color_pair(1)) sorted_rooms = sorted(rooms, compare_room) for room in sorted_rooms: @@ -144,7 +144,7 @@ class RoomInfo(Win): break (y, x) = self.win.getyx() try: - self.win.addstr(y, x-1, ']'+(' '*((self.width)-x)), curses.color_pair(1)) + self.win.addstr(y, x-1, '] '+ current.name+ (' '*((self.width)-x)), curses.color_pair(1)) except: pass self.win.refresh() @@ -184,7 +184,6 @@ class TextWin(Win): for message in messages: txt = message.txt offset = 11 # length of the time - debug(str(message.nickname) + ' : '+message.txt + '\n') if message.nickname and len(message.nickname) >= 30: nick = message.nickname[:30]+u'…' else: @@ -202,6 +201,8 @@ class TextWin(Win): if limit == 0: break color = message.user.color if message.user else None + if not first: + nick = None l = Line(nick, color, message.time, txt[:limit], message.color, |