Progress is displayed by color-filling a horizontal bar. It is
also possible to show the progress using a text representation,
including the elapsed time.
Methods
|
|
|
|
__init__
|
__init__ (
self,
parent=None,
**kw,
)
Create a ProgressMeter.
|
|
computePercentDone
|
computePercentDone ( self )
Compute our progress as a percent done and return the number.
|
|
createProgressMeterCanvas
|
createProgressMeterCanvas ( self, parent )
Create the canvas on which the meter will be drawn.
Create the canvas widget and the components on the canvas
to draw the progress meter. This is separated out to make
subclassing easier.
|
|
drawProgressMeter
|
drawProgressMeter ( self, percentDone )
Draw the progress meter the way it should look with the specified percentDone.
|
|
formatTime
|
formatTime ( self, timeValue )
Format the timeValue with our standard formatting string for display.
|
|
getColors
|
getColors ( self )
Returns colors to use to draw the progress bar.
Once we know the progresscolor attribute, we should be able to
compute appropriate shadow colors. Returns a tuple with
(progresscolor, top shadow(light), bottom shadow(dark)).
|
|
indicatorTextGet
|
indicatorTextGet ( self, percentDone )
Returns the text to be used in the indicator, already formatted.
|
|
redraw
|
redraw ( self )
Redraw method to update the display.
|
|
showPercentDone
|
showPercentDone ( self )
Show our progress.
|
|
updateMessage
|
updateMessage ( self, messageString='' )
Display a new message in our label, if we have one.
|
|
updateProgress
|
updateProgress ( self, newValue=0 )
Set a new progress value.
|
|
updateTimeValues
|
updateTimeValues ( self )
Update the time left value on the progress indicator.
|