summaryrefslogtreecommitdiffstats
path: root/text.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2007-03-05 20:48:46 +0000
committerJeremy Katz <katzj@redhat.com>2007-03-05 20:48:46 +0000
commitd891685c6aa4e5cf535fe33fe37601af48f21145 (patch)
tree59c07110b106c3294d1fbe693b1cd772fabd2025 /text.py
parent37380c34ff08adc3b883c02cae03487bf322b6b0 (diff)
downloadanaconda-d891685c6aa4e5cf535fe33fe37601af48f21145.tar.gz
anaconda-d891685c6aa4e5cf535fe33fe37601af48f21145.tar.xz
anaconda-d891685c6aa4e5cf535fe33fe37601af48f21145.zip
2007-03-05 Jeremy Katz <katzj@redhat.com>
* text.py (ProgressWindow): Pass ints to snack Scale (#230951)
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 bf5e8743a..18d17eecb 100644
--- a/text.py
+++ b/text.py
@@ -114,7 +114,7 @@ class ProgressWindow:
self.scale = None
def set(self, amount):
- self.scale.set(float(amount) * self.multiplier)
+ self.scale.set(int(float(amount) * self.multiplier))
self.screen.refresh()
def refresh(self):
@@ -133,7 +133,7 @@ class ProgressWindow:
g = GridForm(self.screen, title, 1, 2)
g.add(t, 0, 0, (0, 0, 0, 1), anchorLeft=1)
- self.scale = Scale(int(width), float(total) * self.multiplier)
+ self.scale = Scale(int(width), int(float(total) * self.multiplier))
g.add(self.scale, 0, 1)
g.draw()