Panda3D
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Properties
Public Member Functions | Public Attributes | List of all members
DirectWaitBar Class Reference
Inheritance diagram for DirectWaitBar:
DirectFrame DirectGuiWidget DirectGuiBase DWBPackageInstaller

Public Member Functions

def __init__
 
def destroy
 
def finish
 
def getPercent
 
def setBarBorderWidth
 
def setBarColor
 
def setBarRelief
 
def setBarTexture
 
def setRange
 
def setValue
 
def update
 
def updateBarStyle
 
- Public Member Functions inherited from DirectFrame
def __init__
 
def destroy
 
def setGeom
 
def setImage
 
def setText
 
- Public Member Functions inherited from DirectGuiWidget
def __init__
 
def copyOptions
 
def destroy
 
def disableEdit
 
def editStart
 
def editStop
 
def enableEdit
 
def frameInitialiseFunc
 
def getBounds
 
def getCenter
 
def getFrameType
 
def getHeight
 
def getWidth
 
def guiDragTask
 
def guiScaleTask
 
def printConfig
 
def resetFrameSize
 
def setBorderUvWidth
 
def setBorderWidth
 
def setFrameColor
 
def setFrameSize
 
def setFrameTexture
 
def setFrameVisibleScale
 
def setProp
 
def setRelief
 
def setState
 
def taskName
 
def uniqueName
 
def updateFrameStyle
 
- Public Member Functions inherited from DirectGuiBase
def __init__
 
def __setitem__
 
def addoptions
 
def bind
 
def cget
 
def component
 
def components
 
def configure
 
def createcomponent
 
def defineoptions
 
def destroy
 
def destroycomponent
 
def hascomponent
 
def initialiseoptions
 
def isinitoption
 
def options
 
def postInitialiseFunc
 
def unbind
 

Public Attributes

 barStyle
 
- Public Attributes inherited from DirectGuiWidget
 bounds
 
 frameStyle
 
 guiId
 
 guiItem
 
 ll
 
 stateNodePath
 
 ur
 
- Public Attributes inherited from DirectGuiBase
 fInit
 
 guiId
 
 postInitialiseFuncList
 

Additional Inherited Members

- Static Public Attributes inherited from DirectFrame
tuple DefDynGroups = ('text', 'geom', 'image')
 
- Static Public Attributes inherited from DirectGuiWidget
float gridSpacing = 0.05
 
dictionary guiDict = {}
 
tuple guiEdit = get_config_showbase()
 
 inactiveInitState = DGG.NORMAL
 
int snapToGrid = 0
 

Detailed Description

DirectWaitBar - A DirectWidget that shows progress completed
towards a task.  

Constructor & Destructor Documentation

def __init__ (   self,
  parent = None,
  kw 
)

Member Function Documentation

def destroy (   self)
def finish (   self,
  N = 10 
)
Fill the bar in N frames. This call is blocking.
def getPercent (   self)
Returns the percentage complete.
def setBarBorderWidth (   self)
Updates the bar's border width, which you can set using bar['barBorderWidth'].
def setBarColor (   self)
Updates the bar color, which you can set using bar['barColor'].
def setBarRelief (   self)
Updates the bar relief, which you can set using bar['barRelief'].
def setBarTexture (   self)
Updates the bar texture, which you can set using bar['barTexture'].
def setRange (   self)
Updates the bar range which you can set using bar['range'].
This is the value at which the WaitBar indicates 100%.
def setValue (   self)
Updates the bar value which you can set using bar['value'].
The value should range between 0 and bar['range'].
def update (   self,
  value 
)
Updates the bar with the given value and renders a frame.
def updateBarStyle (   self)

Member Data Documentation

barStyle