ConfigVariableList

from panda3d.core import ConfigVariableList
class ConfigVariableList

Bases:

Bases: ConfigVariableBase

This class is similar to ConfigVariable, but it reports its value as a list of strings. In this special case, all of the declarations of the variable are returned as the elements of this list, in order.

Note that this is different from a normal ConfigVariableString, which just returns its topmost value, which can optionally be treated as a number of discrete words by dividing it at the spaces.

A ConfigVariableList cannot be modified locally.

Inheritance diagram

Inheritance diagram of ConfigVariableList

__getitem__(n: int) str
__init__(param0: ConfigVariableList)
__init__(name: str, description: str, flags: int)
get_num_unique_values() int

Returns the number of unique values in the variable.

get_num_values() int

Returns the number of values in the variable.

get_string_value(n: int) str

Returns the nth value of the variable.

get_unique_value(n: int) str

Returns the nth unique value of the variable.

output(out: ostream)
size() int

Returns the number of unique values of the variable.

write(out: ostream)