panda3d.core.ConfigVariableBool

class ConfigVariableBool

Bases: ConfigVariable

This is a convenience class to specialize ConfigVariable as a boolean type.

Inheritance diagram

Inheritance diagram of ConfigVariableBool

__init__(param0: ConfigVariableBool) → None
__init__(name: str) → None
__init__(name: str, default_value: bool, description: str, flags: int) → None
__init__(name: str, default_value: str, description: str, flags: int) → None
assign(value: bool) → ConfigVariableBool
Return type

ConfigVariableBool

size() → size_t

Returns the number of unique words in the variable.

Return type

size_t

setValue(value: bool) → None

Reassigns the variable’s local value.

getValue() → bool

Returns the variable’s value.

getDefaultValue() → bool

Returns the variable’s default value.

getWord(n: size_t) → bool

Returns the variable’s nth value.

setWord(n: size_t, value: bool) → None

Reassigns the variable’s nth value. This makes a local copy of the variable’s overall value.

property value
Getter

Returns the variable’s value.

Setter

Reassigns the variable’s local value.

Return type

bool

property default_value

Returns the variable’s default value.

Return type

bool