diff options
author | Jeremy Katz <katzj@redhat.com> | 2007-03-05 20:48:46 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2007-03-05 20:48:46 +0000 |
commit | d891685c6aa4e5cf535fe33fe37601af48f21145 (patch) | |
tree | 59c07110b106c3294d1fbe693b1cd772fabd2025 /text.py | |
parent | 37380c34ff08adc3b883c02cae03487bf322b6b0 (diff) | |
download | anaconda-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.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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() |