diff options
author | Ian Ward <ian@excess.org> | 2014-01-04 21:32:13 -0500 |
---|---|---|
committer | Ian Ward <ian@excess.org> | 2014-01-04 21:32:13 -0500 |
commit | 093bb20c0579912784cd1fa6d673210b45e40967 (patch) | |
tree | 4eabae155e666b38f31982ceb1bafc84a37011d3 | |
parent | f53567e813b31d3dc2580b96ce3f968913edb964 (diff) | |
download | urwid-093bb20c0579912784cd1fa6d673210b45e40967.tar.gz |
fix #45 GridFlow argument v_sep not working as documented
-rwxr-xr-x | urwid/container.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/urwid/container.py b/urwid/container.py index 649e060..69a6110 100755 --- a/urwid/container.py +++ b/urwid/container.py @@ -360,6 +360,10 @@ class GridFlow(WidgetWrap, WidgetContainerMixin, WidgetContainerListContentsMixi pad.original_widget=w pad.width = used_space - self.h_sep + if self.v_sep: + # remove first divider + del p.contents[:1] + return p def _set_focus_from_display_widget(self): |