ConfigVariableList

from panda3d.core import ConfigVariableList
class ConfigVariableList

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)
getNumUniqueValues()int

Returns the number of unique values in the variable.

getNumValues()int

Returns the number of values in the variable.

getStringValue(n: int)str

Returns the nth value of the variable.

getUniqueValue(n: int)str

Returns the nth unique value of the variable.

output(out: ostream)None
size()int

Returns the number of unique values of the variable.

write(out: ostream)None