diff options
author | mathieui <mathieui@mathieui.net> | 2016-07-07 19:51:53 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2016-07-07 19:51:53 +0200 |
commit | dae641412ebebdf7fd7364f07a577688a375715d (patch) | |
tree | 507318f8689689e546fbe17c7c8ede53d29767fa /poezio/windows/bookmark_forms.py | |
parent | 3dcb04992dd6eb3f76f9d449ae7118da2c572d08 (diff) | |
download | poezio-dae641412ebebdf7fd7364f07a577688a375715d.tar.gz poezio-dae641412ebebdf7fd7364f07a577688a375715d.tar.bz2 poezio-dae641412ebebdf7fd7364f07a577688a375715d.tar.xz poezio-dae641412ebebdf7fd7364f07a577688a375715d.zip |
Fix a circular import introduced in 409b1513
It breaks python 3.4 which is touchy about them, https://bugs.python.org/issue17636
Diffstat (limited to 'poezio/windows/bookmark_forms.py')
-rw-r--r-- | poezio/windows/bookmark_forms.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/poezio/windows/bookmark_forms.py b/poezio/windows/bookmark_forms.py index 4df151ee..3102c358 100644 --- a/poezio/windows/bookmark_forms.py +++ b/poezio/windows/bookmark_forms.py @@ -3,8 +3,7 @@ Windows used inthe bookmarkstab """ import curses -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.windows.data_forms import FieldInput from poezio.theming import to_curses_attr, get_theme @@ -131,7 +130,7 @@ class BookmarkAutojoinWin(FieldInput, Win): class BookmarksWin(Win): def __init__(self, bookmarks, height, width, y, x): - 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.current_horizontal_input = 0 @@ -182,7 +181,7 @@ class BookmarksWin(Win): 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: |