# panda3d.core.ConfigVariableList¶

from panda3d.core import ConfigVariableList

class ConfigVariableList

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

__init__(param0: ConfigVariableList) → None
__init__(name: str, description: str, flags: int) → None
getNumUniqueValues() → size_t

Returns the number of unique values in the variable.

Return type

size_t

getNumValues() → size_t

Returns the number of values in the variable.

Return type

size_t

getStringValue(n: size_t) → str

Returns the nth value of the variable.

getUniqueValue(n: size_t) → str

Returns the nth unique value of the variable.

output(out: ostream) → None
size() → size_t

Returns the number of unique values of the variable.

Return type

size_t

write(out: ostream) → None