Clip at 100%, not at 100 calls.
svn: r647
This commit is contained in:
parent
8fa4475a6b
commit
f39968a478
@ -111,14 +111,15 @@ class Report:
|
||||
# Setup the progress bar limits
|
||||
self.pbar = self.pxml.get_widget("progressbar")
|
||||
self.pbar.configure(0.0,0.0,total)
|
||||
self.pbar_max = total
|
||||
self.pbar_index = 0.0
|
||||
|
||||
def progress_bar_step(self):
|
||||
"""Click the progress bar over to the next value. Be paranoid
|
||||
and insure that it doesn't go over 100%."""
|
||||
self.pbar_index = self.pbar_index + 1.0
|
||||
if (self.pbar_index > 100.0):
|
||||
self.pbar_index = 100.0
|
||||
if (self.pbar_index > self.pbar_max):
|
||||
self.pbar_index = self.pbar_max
|
||||
self.pbar.set_value(self.pbar_index)
|
||||
|
||||
def progress_bar_done(self):
|
||||
|
Loading…
Reference in New Issue
Block a user