from panda3d.core import ConfigVariableString
class ConfigVariableString


Bases: ConfigVariable

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

Inheritance diagram

Inheritance diagram of ConfigVariableString

__eq__(other: str) bool

Comparison operators are handy.

__getitem__(n: int) char
__init__(param0: ConfigVariableString)
__init__(name: str)
__init__(name: str, default_value: str, description: str, flags: int)
__lt__(other: str) bool
__ne__(other: str) bool
assign(value: str) ConfigVariableString
cStr() str

These methods help the ConfigVariableString act like a C++ string object.

property default_value string

Returns the variable’s default value.

empty() bool
getDefaultValue() str

Returns the variable’s default value.

getValue() str

Returns the variable’s value.

getWord(n: int) str

Returns the variable’s nth value.

length() int
setValue(value: str)

Reassigns the variable’s local value.

setWord(n: int, value: str)

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

property value string

Returns the variable’s value.


Reassigns the variable’s local value.