direct.gui.DirectWaitBar
from direct.gui.DirectWaitBar import DirectWaitBar
Contains the DirectWaitBar class, a progress bar widget.
See the DirectWaitBar page in the programming manual for a more
in-depth explanation and an example of how to use this class.
Inheritance diagram
-
class
DirectWaitBar
(parent=None, **kw)[source]
Bases: direct.gui.DirectFrame.DirectFrame
DirectWaitBar - A DirectWidget that shows progress completed
towards a task.
-
__init__
(self, parent=None, **kw)[source]
-
destroy
(self)[source]
-
finish
(self, N=10)[source]
Fill the bar in N frames. This call is blocking.
-
getPercent
(self)[source]
Returns the percentage complete.
-
setBarBorderWidth
(self)[source]
Updates the bar’s border width, which you can set using bar[‘barBorderWidth’].
-
setBarColor
(self)[source]
Updates the bar color, which you can set using bar[‘barColor’].
-
setBarRelief
(self)[source]
Updates the bar relief, which you can set using bar[‘barRelief’].
-
setBarTexture
(self)[source]
Updates the bar texture, which you can set using bar[‘barTexture’].
-
setRange
(self)[source]
Updates the bar range which you can set using bar[‘range’].
This is the value at which the WaitBar indicates 100%.
-
setValue
(self)[source]
Updates the bar value which you can set using bar[‘value’].
The value should range between 0 and bar[‘range’].
-
update
(self, value)[source]
Updates the bar with the given value and renders a frame.
-
updateBarStyle
(self)[source]