ConfigVariableInt

from panda3d.core import ConfigVariableInt
class ConfigVariableInt

Bases: ConfigVariable

This is a convenience class to specialize ConfigVariable as an integer type.

Inheritance diagram

Inheritance diagram of ConfigVariableInt

__getitem__(n: int)int
__init__(param0: ConfigVariableInt)
__init__(name: str)
__init__(name: str, default_value: int, description: str, flags: int)
__init__(name: str, default_value: str, description: str, flags: int)
assign(value: int)ConfigVariableInt
property default_valueint

Returns the variable’s default value.

getDefaultValue()int

Returns the variable’s default value.

getValue()int

Returns the variable’s value.

getWord(n: int)int

Returns the variable’s nth value.

setValue(value: int)None

Reassigns the variable’s local value.

setWord(n: int, value: int)None

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

size()int

Returns the number of unique words in the variable.

property valueint
Getter

Returns the variable’s value.

Setter

Reassigns the variable’s local value.