_ConfigBase

Contents

_ConfigBase#

class _ConfigBase[source]#

Shared base class for PyVista config objects.

Provides dict-style item access, from_dict / to_dict serialization, and equality comparison. Used as the base for both the core pyvista.core.config.Config and every node of the plotting pyvista.plotting.themes.Theme hierarchy.

Subclasses must list every attribute as an underscore-prefixed entry in their __slots__ and expose each one via a public @property getter / setter pair that reads and writes the underscore slot.

Methods#

_ConfigBase.from_dict(dict_)

Create an instance from a dictionary of attribute values.

_ConfigBase.to_dict()

Return config parameters as a dictionary.