diff options
| author | Andrew Dunai <andunai@gmail.com> | 2018-12-08 22:59:03 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-12-08 22:59:03 +0200 |
| commit | b5494b63e3f3ebaee302e8bea82fe8b7500a3a4b (patch) | |
| tree | faf97424e001f9861be93b0df2b9f3388558691a /urwid | |
| parent | f080ffe040f799a07185032f9ed53ca77603b107 (diff) | |
| parent | 8755d32e2b1f11a8480feccfb9d9f6d2c657d51c (diff) | |
| download | urwid-b5494b63e3f3ebaee302e8bea82fe8b7500a3a4b.tar.gz | |
Merge pull request #325 from carlos-jenkins/master
Fix issue #324 "Non-integer division in bargraph when using set_bar_width(1)"
Diffstat (limited to 'urwid')
| -rwxr-xr-x | urwid/graphics.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/urwid/graphics.py b/urwid/graphics.py index 05a936f..6367756 100755 --- a/urwid/graphics.py +++ b/urwid/graphics.py @@ -400,7 +400,7 @@ class BarGraph(with_metaclass(BarGraphMeta, Widget)): if self.bar_width is not None: return [self.bar_width] * min( - len(bardata), maxcol / self.bar_width) + len(bardata), maxcol // self.bar_width) if len(bardata) >= maxcol: return [1] * maxcol |
