summaryrefslogtreecommitdiff
path: root/poezio/windows/data_forms.py
diff options
context:
space:
mode:
Diffstat (limited to 'poezio/windows/data_forms.py')
-rw-r--r--poezio/windows/data_forms.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/poezio/windows/data_forms.py b/poezio/windows/data_forms.py
index b7e5bc37..27b7f2c5 100644
--- a/poezio/windows/data_forms.py
+++ b/poezio/windows/data_forms.py
@@ -6,6 +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.inputs import Input
@@ -341,7 +342,7 @@ class FormWin(object):
}
def __init__(self, form, height, width, y, x):
self._form = form
- self._win = Win._tab_win.derwin(height, width, y, x)
+ self._win = windows.TAB_WIN.derwin(height, width, y, x)
self.scroll_pos = 0
self.current_input = 0
self.inputs = [] # dict list
@@ -364,7 +365,7 @@ class FormWin(object):
def resize(self, height, width, y, x):
self.height = height
self.width = width
- self._win = Win._tab_win.derwin(height, width, y, x)
+ self._win = windows.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: