panda3d.core.PGWaitBar

from panda3d.core import 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
setup(width: float, height: float, range: float) → None

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

setRange(range: float) → None

Sets the value at which the WaitBar indicates 100%.

getRange() → float

Returns 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().

getValue() → float

Returns the current value of the bar.

getPercent() → float

Returns the percentage complete.

setBarStyle(style: PGFrameStyle) → None

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

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