summaryrefslogtreecommitdiff
path: root/src/window.py
diff options
context:
space:
mode:
authorlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-02-14 04:41:14 +0000
committerlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-02-14 04:41:14 +0000
commit9ac6a55af0250e075691e578fee7ad5728d704b8 (patch)
tree956c04ab168a478ff50c36496fbb0a916aab128e /src/window.py
parent724c45770c6736b436edcef08388e58a5c98cc99 (diff)
downloadpoezio-9ac6a55af0250e075691e578fee7ad5728d704b8.tar.gz
poezio-9ac6a55af0250e075691e578fee7ad5728d704b8.tar.bz2
poezio-9ac6a55af0250e075691e578fee7ad5728d704b8.tar.xz
poezio-9ac6a55af0250e075691e578fee7ad5728d704b8.zip
new colors
Diffstat (limited to 'src/window.py')
-rw-r--r--src/window.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/window.py b/src/window.py
index 8ad1fc78..167c4b87 100644
--- a/src/window.py
+++ b/src/window.py
@@ -179,9 +179,17 @@ class TextWin(object):
return
win = self.wins[room.name].win
users = room.users
+ win.addstr('\n['+line[0].strftime("%H"))
+ win.attron(curses.color_pair(9))
+ win.addstr(':')
+ win.attroff(curses.color_pair(9))
+ win.addstr(line[0].strftime('%M'))
+ win.attron(curses.color_pair(9))
+ win.addstr(':')
+ win.attroff(curses.color_pair(9))
+ win.addstr(line[0].strftime('%S') + "] ")
if len(line) == 2:
try:
- win.addstr('\n['+line[0].strftime("%H:%M:%S") + "] ")
win.attron(curses.color_pair(8))
win.addstr(line[1])
win.attroff(curses.color_pair(8))
@@ -191,8 +199,6 @@ class TextWin(object):
if user.nick == line[1]:
break
try:
- try:win.addstr('\n['+line[0].strftime("%H:%M:%S") + "] <")
- except:pass
length = len('['+line[0].strftime("%H:%M:%S") + "] <")
if line[1]:
win.attron(curses.color_pair(user.color))