# panda3d.core.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
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.

getNumUniqueValues() → size_t

Returns the number of unique values in the variable.

Return type

size_t

getUniqueValue(n: size_t) → str

Returns the nth unique value of the variable.

size() → size_t

Returns the number of unique values of the variable.

Return type

size_t

output(out: ostream) → None
write(out: ostream) → None