From: Jack Jansen Date: Mon, 24 Mar 2003 12:12:24 +0000 (+0000) Subject: Allow floating point values in ProgressBar. X-Git-Tag: v2.3c1~1372 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=52fbe5330b6a26ac1ca25aacd49523ad7f475182;p=python Allow floating point values in ProgressBar. --- diff --git a/Lib/plat-mac/EasyDialogs.py b/Lib/plat-mac/EasyDialogs.py index cbbe9bce71..27219a2cbe 100644 --- a/Lib/plat-mac/EasyDialogs.py +++ b/Lib/plat-mac/EasyDialogs.py @@ -290,6 +290,8 @@ class ProgressBar: if maxval > 32767: value = int(value/(maxval/32767.0)) maxval = 32767 + maxval = int(maxval) + value = int(value) progbar = self.d.GetDialogItemAsControl(3) progbar.SetControlMaximum(maxval) progbar.SetControlValue(value) # set the bar length