summaryrefslogtreecommitdiff
path: root/src/gui.py
diff options
context:
space:
mode:
authorlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-01-21 13:10:33 +0000
committerlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-01-21 13:10:33 +0000
commit49caa2a6eba44ab23c5dbef14c5c213d856396de (patch)
tree89e2674006d193c4a518bb10753cdc92da6c3751 /src/gui.py
parent23320f0ffeb9bb5a988978e4f17ced98f99fccf2 (diff)
downloadpoezio-49caa2a6eba44ab23c5dbef14c5c213d856396de.tar.gz
poezio-49caa2a6eba44ab23c5dbef14c5c213d856396de.tar.bz2
poezio-49caa2a6eba44ab23c5dbef14c5c213d856396de.tar.xz
poezio-49caa2a6eba44ab23c5dbef14c5c213d856396de.zip
corrige le bug du clignottement
Diffstat (limited to 'src/gui.py')
-rw-r--r--src/gui.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/gui.py b/src/gui.py
index adae15e7..bc2661b8 100644
--- a/src/gui.py
+++ b/src/gui.py
@@ -159,10 +159,11 @@ class Gui(object):
if room_from == room.name:
room.add_message(nick_from, stanza.getBody())
if room == self.rooms[0]:
- # self.window.text_win.refresh(room.lines)
- # self.window.user_win.refresh(room.users)
- # self.window.input.refresh()
- self.window.refresh(self.rooms[0])
+ self.window.text_win.refresh(room.lines)
+ self.window.user_win.refresh(room.users)
+ self.window.input.refresh()
+# self.window.refresh(self.rooms[0])
+ curses.doupdate()
break
def room_presence(self, stanza):
@@ -174,6 +175,7 @@ class Gui(object):
if room == self.rooms[0]:
self.window.text_win.refresh(room.lines)
self.window.user_win.refresh(room.users)
+ curses.doupdate()
break
def execute(self):
@@ -201,7 +203,7 @@ class Gui(object):
def main_loop(self, stdscr):
while 1:
- stdscr.refresh()
+ curses.doupdate()
# self.window.input.refresh()
key = stdscr.getch()
if key == curses.KEY_RESIZE: