panda3d.core.ConfigVariableString

class ConfigVariableString

Bases: ConfigVariable

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

Inheritance diagram

Inheritance diagram of ConfigVariableString

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

ConfigVariableString

cStr() → str

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

empty() → bool
length() → size_t
Return type

size_t

setValue(value: str) → None

Reassigns the variable’s local value.

getValue() → str

Returns the variable’s value.

getDefaultValue() → str

Returns the variable’s default value.

getWord(n: size_t) → str

Returns the variable’s nth value.

setWord(n: size_t, value: str) → 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

string

property default_value

Returns the variable’s default value.

Return type

string