Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 52fbe53

Browse files
committed
Allow floating point values in ProgressBar.
1 parent b46bebf commit 52fbe53

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Lib/plat-mac/EasyDialogs.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,8 @@ def _update(self, value):
290290
if maxval > 32767:
291291
value = int(value/(maxval/32767.0))
292292
maxval = 32767
293+
maxval = int(maxval)
294+
value = int(value)
293295
progbar = self.d.GetDialogItemAsControl(3)
294296
progbar.SetControlMaximum(maxval)
295297
progbar.SetControlValue(value) # set the bar length

0 commit comments

Comments
 (0)