summaryrefslogtreecommitdiff
path: root/poezio/windows/bookmark_forms.py
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2016-07-05 23:29:57 +0100
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2016-07-06 00:25:13 +0100
commit409b1513ce83e114235c33079fa67623c7843f7e (patch)
tree04267482d6ff5cea32722f18c2f9c2cb8001da4f /poezio/windows/bookmark_forms.py
parent4ffe32ac649f8aa5ca5a7bc526c8860c2795a69e (diff)
downloadpoezio-409b1513ce83e114235c33079fa67623c7843f7e.tar.gz
poezio-409b1513ce83e114235c33079fa67623c7843f7e.tar.bz2
poezio-409b1513ce83e114235c33079fa67623c7843f7e.tar.xz
poezio-409b1513ce83e114235c33079fa67623c7843f7e.zip
Move Win._tab_win into poezio.windows.TAB_WIN.
Diffstat (limited to 'poezio/windows/bookmark_forms.py')
-rw-r--r--poezio/windows/bookmark_forms.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/poezio/windows/bookmark_forms.py b/poezio/windows/bookmark_forms.py
index 47173738..4df151ee 100644
--- a/poezio/windows/bookmark_forms.py
+++ b/poezio/windows/bookmark_forms.py
@@ -3,6 +3,7 @@ Windows used inthe bookmarkstab
"""
import curses
+from poezio import windows
from poezio.windows.base_wins import Win
from poezio.windows.inputs import Input
from poezio.windows.data_forms import FieldInput
@@ -130,7 +131,7 @@ class BookmarkAutojoinWin(FieldInput, Win):
class BookmarksWin(Win):
def __init__(self, bookmarks, height, width, y, x):
- 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.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 = 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: