From 409b1513ce83e114235c33079fa67623c7843f7e Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Tue, 5 Jul 2016 23:29:57 +0100 Subject: Move Win._tab_win into poezio.windows.TAB_WIN. --- poezio/windows/base_wins.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'poezio/windows/base_wins.py') diff --git a/poezio/windows/base_wins.py b/poezio/windows/base_wins.py index a5629ed5..daab504b 100644 --- a/poezio/windows/base_wins.py +++ b/poezio/windows/base_wins.py @@ -13,6 +13,7 @@ log = logging.getLogger(__name__) import curses import string +from poezio import windows from poezio.theming import to_curses_attr, read_tuple FORMAT_CHAR = '\x19' @@ -30,8 +31,8 @@ class DummyWin(object): def __bool__(self): return False + class Win(object): - _tab_win = None def __init__(self): self._win = None self.height, self.width = 0, 0 @@ -42,7 +43,7 @@ class Win(object): return self.height, self.width, self.x, self.y = height, width, x, y try: - self._win = Win._tab_win.derwin(height, width, y, x) + self._win = windows.TAB_WIN.derwin(height, width, y, x) except: log.debug('DEBUG: mvwin returned ERR. Please investigate') if self._win is None: -- cgit v1.2.3