summaryrefslogtreecommitdiffstats
path: root/text.py
diff options
context:
space:
mode:
Diffstat (limited to 'text.py')
-rw-r--r--text.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/text.py b/text.py
index a557c26ac..f63617342 100644
--- a/text.py
+++ b/text.py
@@ -119,7 +119,7 @@ class ProgressWindow:
self.scale = None
def set(self, amount):
- self.scale.set(amount)
+ self.scale.set(int(amount))
self.screen.refresh()
def refresh(self):
@@ -135,7 +135,7 @@ class ProgressWindow:
g = GridForm(self.screen, title, 1, 2)
g.add(t, 0, 0, (0, 0, 0, 1), anchorLeft=1)
- self.scale = Scale(width, total)
+ self.scale = Scale(int(width), int(total))
g.add(self.scale, 0, 1)
g.draw()