diff options
Diffstat (limited to 'text.py')
-rw-r--r-- | text.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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() |