From dae641412ebebdf7fd7364f07a577688a375715d Mon Sep 17 00:00:00 2001 From: mathieui Date: Thu, 7 Jul 2016 19:51:53 +0200 Subject: Fix a circular import introduced in 409b1513 It breaks python 3.4 which is touchy about them, https://bugs.python.org/issue17636 --- poezio/windows/data_forms.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'poezio/windows/data_forms.py') diff --git a/poezio/windows/data_forms.py b/poezio/windows/data_forms.py index 27b7f2c5..d9f98783 100644 --- a/poezio/windows/data_forms.py +++ b/poezio/windows/data_forms.py @@ -6,8 +6,7 @@ does not inherit from the Win base class), as it will create the others when needed. """ -from poezio import windows -from poezio.windows.base_wins import Win +from poezio.windows.base_wins import Win, TAB_WIN from poezio.windows.inputs import Input from poezio.theming import to_curses_attr, get_theme @@ -342,7 +341,7 @@ class FormWin(object): } def __init__(self, form, height, width, y, x): self._form = form - self._win = windows.TAB_WIN.derwin(height, width, y, x) + self._win = TAB_WIN.derwin(height, width, y, x) self.scroll_pos = 0 self.current_input = 0 self.inputs = [] # dict list @@ -365,7 +364,7 @@ class FormWin(object): def resize(self, height, width, y, x): self.height = height self.width = width - self._win = windows.TAB_WIN.derwin(height, width, y, x) + self._win = TAB_WIN.derwin(height, width, y, x) # Adjust the scroll position, if resizing made the window too small # for the cursor to be visible while self.current_input - self.scroll_pos > self.height-1: -- cgit v1.2.3