PGWaitBar

from panda3d.core import PGWaitBar
class PGWaitBar

Bases:

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)
get_bar_style() PGFrameStyle

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

static get_class_type() TypeHandle
get_percent() float

Returns the percentage complete.

get_range() float

Returns the value at which the WaitBar indicates 100%.

get_value() float

Returns the current value of the bar.

set_bar_style(style: PGFrameStyle)

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

set_range(range: float)

Sets the value at which the WaitBar indicates 100%.

set_value(value: float)

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

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

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