ConfigVariableString

from panda3d.core import ConfigVariableString
class ConfigVariableString

Bases:

Bases: ConfigVariable

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

Inheritance diagram

Inheritance diagram of ConfigVariableString

__bool__() bool

Returns true if the variable is not empty.

__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
c_str() str

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

property default_value string

Returns the variable’s default value.

empty() bool
get_default_value() str

Returns the variable’s default value.

get_value() str

Returns the variable’s value.

get_word(n: int) str

Returns the variable’s nth value.

length() int
set_value(value: str)

Reassigns the variable’s local value.

set_word(n: int, value: str)

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

property value string
Getter

Returns the variable’s value.

Setter

Reassigns the variable’s local value.