summaryrefslogtreecommitdiff
path: root/src/window.py
diff options
context:
space:
mode:
authorlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-06-13 16:01:38 +0000
committerlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-06-13 16:01:38 +0000
commita35866ba8d0ea2959133331f41ddfad8ef74e23f (patch)
tree6c9acd8acfe9dd0c8fc82da0b0031b71283ca502 /src/window.py
parentaccfe046bea252f12ecd441bee348d3cd7e1bf84 (diff)
downloadpoezio-a35866ba8d0ea2959133331f41ddfad8ef74e23f.tar.gz
poezio-a35866ba8d0ea2959133331f41ddfad8ef74e23f.tar.bz2
poezio-a35866ba8d0ea2959133331f41ddfad8ef74e23f.tar.xz
poezio-a35866ba8d0ea2959133331f41ddfad8ef74e23f.zip
code cleanup before 0.6 beta
Diffstat (limited to 'src/window.py')
-rw-r--r--src/window.py17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/window.py b/src/window.py
index 8532e541..19fcc63b 100644
--- a/src/window.py
+++ b/src/window.py
@@ -22,23 +22,12 @@ from gettext import (bindtextdomain, textdomain, bind_textdomain_codeset,
gettext as _)
from os.path import isfile
-# if isfile('../locale/poezio.pot'):
-# localedir = '../locale'
-# else:
-# localedir = '/usr/share/locale'
-
-# bindtextdomain('poezio', localedir)
-# textdomain('poezio')
-# bind_textdomain_codeset('poezio', 'utf-8')
-
import locale
locale.setlocale(locale.LC_ALL, '')
import curses
from config import config
-from common import debug
-
from message import Line
class Win(object):
@@ -60,7 +49,6 @@ class Win(object):
pass
self.win.idlok(1)
self.win.leaveok(1)
- # self.win.syncok(0)
def refresh(self):
self.win.noutrefresh()
@@ -238,7 +226,6 @@ class TextWin(Win):
Build the Line objects from the messages, and then write
them in the text area
"""
- from common import debug
if not self.visible:
return
self.win.erase()
@@ -605,7 +592,6 @@ class Window(object):
'room' is the current one
"""
room = rooms[0] # get current room
- # self.text_win.redraw(room)
self.text_win.refresh(room)
self.user_win.refresh(room.users)
self.topic_win.refresh(room.topic, room.jid)
@@ -615,6 +601,3 @@ class Window(object):
def do_command(self, key):
self.input.do_command(key)
self.input.refresh()
-
- # def new_room(self, room):
- # self.text_win.new_win(room.name)