diff options
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2016-07-05 23:29:57 +0100 |
---|---|---|
committer | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2016-07-06 00:25:13 +0100 |
commit | 409b1513ce83e114235c33079fa67623c7843f7e (patch) | |
tree | 04267482d6ff5cea32722f18c2f9c2cb8001da4f /poezio/size_manager.py | |
parent | 4ffe32ac649f8aa5ca5a7bc526c8860c2795a69e (diff) | |
download | poezio-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/size_manager.py')
-rw-r--r-- | poezio/size_manager.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/poezio/size_manager.py b/poezio/size_manager.py index 1a8735ab..a573e176 100644 --- a/poezio/size_manager.py +++ b/poezio/size_manager.py @@ -3,6 +3,9 @@ Size Manager: used to check size boundaries of the whole window and specific tabs """ + +from poezio import windows + THRESHOLD_WIDTH_DEGRADE = 45 THRESHOLD_HEIGHT_DEGRADE = 10 @@ -17,12 +20,12 @@ class SizeManager(object): @property def tab_degrade_x(self): - _, x = self._win_class._tab_win.getmaxyx() + _, x = windows.TAB_WIN.getmaxyx() return x < THRESHOLD_WIDTH_DEGRADE @property def tab_degrade_y(self): - y, x = self._win_class._tab_win.getmaxyx() + y, x = windows.TAB_WIN.getmaxyx() return y < THRESHOLD_HEIGHT_DEGRADE @property |