direct.p3d.SeqValue

from direct.p3d.SeqValue import SeqValue

Deprecated since version 1.10.0: The p3d packaging system has been replaced with the new setuptools-based system. See the Distributing Panda3D Applications manual section.

Inheritance diagram

Inheritance diagram of direct.p3d.SeqValue

class SeqValue(value=None)[source]

Bases: object

This represents a sequence value read from a contents.xml file, either from the <contents> or the <package> section. It’s represented as series of dotted integers in the xml file, and stored internally as a tuple of integers.

It may be incremented, which increments only the last integer in the series; or it may be compared with another SeqValue, which compares all of the integers componentwise.

__init__(self, value=None)[source]
loadXml(self, xelement, attribute='seq')[source]

Reads the seq from the indicated XML element. Returns true if loaded, false if not given or if there was an error.

set(self, value)[source]

Sets the seq from the indicated value of unspecified type.

setFromString(self, value)[source]

Sets the seq from the indicated string of dot-separated integers. Raises ValueError on error.

setFromTuple(self, value)[source]

Sets the seq from the indicated tuple of integers.

storeXml(self, xelement, attribute='seq')[source]

Adds the seq to the indicated XML element.