summaryrefslogtreecommitdiff
path: root/urwid
diff options
context:
space:
mode:
authorAndrew Dunai <andunai@gmail.com>2018-12-08 22:59:03 +0200
committerGitHub <noreply@github.com>2018-12-08 22:59:03 +0200
commitb5494b63e3f3ebaee302e8bea82fe8b7500a3a4b (patch)
treefaf97424e001f9861be93b0df2b9f3388558691a /urwid
parentf080ffe040f799a07185032f9ed53ca77603b107 (diff)
parent8755d32e2b1f11a8480feccfb9d9f6d2c657d51c (diff)
downloadurwid-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-xurwid/graphics.py2
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