panda3d.core.PGWaitBar

class PGWaitBar

Bases: PGItem

This is a particular kind of PGItem that draws a little bar that fills from left to right to indicate a slow process gradually completing, like a traditional “wait, loading” bar.

Inheritance diagram

Inheritance diagram of PGWaitBar

__init__(name: str) → None
getBarStyle() → PGFrameStyle

Returns the kind of frame that is drawn on top of the WaitBar to represent the amount completed.

Return type

PGFrameStyle

static getClassType() → TypeHandle
Return type

TypeHandle

getPercent() → float

Returns the percentage complete.

getRange() → float

Returns the value at which the WaitBar indicates 100%.

getValue() → float

Returns the current value of the bar.

setBarStyle(style: PGFrameStyle) → None

Sets the kind of frame that is drawn on top of the WaitBar to represent the amount completed.

setRange(range: float) → None

Sets the value at which the WaitBar indicates 100%.

setValue(value: float) → None

Sets the current value of the bar. This should range between 0 and getRange().

setup(width: float, height: float, range: float) → None

Creates a PGWaitBar with the indicated dimensions, with the indicated maximum range.