summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2016-07-07 20:09:37 +0200
committermathieui <mathieui@mathieui.net>2016-07-07 20:09:37 +0200
commit968ed665f6d0ab8f6e2392f4b9cfd612c14707c5 (patch)
tree8e2082efb2859f923ab4b91fddd0d7cb68aca8f1
parentdae641412ebebdf7fd7364f07a577688a375715d (diff)
downloadpoezio-968ed665f6d0ab8f6e2392f4b9cfd612c14707c5.tar.gz
poezio-968ed665f6d0ab8f6e2392f4b9cfd612c14707c5.tar.bz2
poezio-968ed665f6d0ab8f6e2392f4b9cfd612c14707c5.tar.xz
poezio-968ed665f6d0ab8f6e2392f4b9cfd612c14707c5.zip
Fix the configure and bookmark tab
-rw-r--r--poezio/windows/bookmark_forms.py7
-rw-r--r--poezio/windows/data_forms.py7
2 files changed, 8 insertions, 6 deletions
diff --git a/poezio/windows/bookmark_forms.py b/poezio/windows/bookmark_forms.py
index 3102c358..9a3c80fd 100644
--- a/poezio/windows/bookmark_forms.py
+++ b/poezio/windows/bookmark_forms.py
@@ -3,7 +3,8 @@ Windows used inthe bookmarkstab
"""
import curses
-from poezio.windows.base_wins import Win, TAB_WIN
+from poezio.windows import base_wins
+from poezio.windows.base_wins import Win
from poezio.windows.inputs import Input
from poezio.windows.data_forms import FieldInput
from poezio.theming import to_curses_attr, get_theme
@@ -130,7 +131,7 @@ class BookmarkAutojoinWin(FieldInput, Win):
class BookmarksWin(Win):
def __init__(self, bookmarks, height, width, y, x):
- self._win = TAB_WIN.derwin(height, width, y, x)
+ self._win = base_wins.TAB_WIN.derwin(height, width, y, x)
self.scroll_pos = 0
self._current_input = 0
self.current_horizontal_input = 0
@@ -181,7 +182,7 @@ class BookmarksWin(Win):
def resize(self, height, width, y, x):
self.height = height
self.width = width
- self._win = TAB_WIN.derwin(height, width, y, x)
+ self._win = base_wins.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:
diff --git a/poezio/windows/data_forms.py b/poezio/windows/data_forms.py
index d9f98783..b43c8f2c 100644
--- a/poezio/windows/data_forms.py
+++ b/poezio/windows/data_forms.py
@@ -6,7 +6,8 @@ does not inherit from the Win base class), as it will create the
others when needed.
"""
-from poezio.windows.base_wins import Win, TAB_WIN
+from poezio.windows import base_wins
+from poezio.windows.base_wins import Win
from poezio.windows.inputs import Input
from poezio.theming import to_curses_attr, get_theme
@@ -341,7 +342,7 @@ class FormWin(object):
}
def __init__(self, form, height, width, y, x):
self._form = form
- self._win = TAB_WIN.derwin(height, width, y, x)
+ self._win = base_wins.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 = TAB_WIN.derwin(height, width, y, x)
+ self._win = base_wins.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: