summaryrefslogtreecommitdiffstats
path: root/text.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2005-11-08 16:49:56 +0000
committerChris Lumens <clumens@redhat.com>2005-11-08 16:49:56 +0000
commitbb217ab4e1d5d3f881087720a0255dc54fe70bf5 (patch)
tree0b8a53e24e3587ec2ccb0410b795d155d15d86b1 /text.py
parentb8fbbe9647dfb1f4044e097c6a22a56744c9a898 (diff)
downloadanaconda-bb217ab4e1d5d3f881087720a0255dc54fe70bf5.tar.gz
anaconda-bb217ab4e1d5d3f881087720a0255dc54fe70bf5.tar.xz
anaconda-bb217ab4e1d5d3f881087720a0255dc54fe70bf5.zip
Fix snack deprecation warnings (#172232).
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()