DefaultSectionType#
Qualified name: manim.scene.section.DefaultSectionType
- class DefaultSectionType(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)[source]#
Bases:
str
,Enum
The type of a section can be used for third party applications. A presentation system could for example use the types to created loops.
Examples
This class can be reimplemented for more types:
class PresentationSectionType(str, Enum): # start, end, wait for continuation by user NORMAL = "presentation.normal" # start, end, immediately continue to next section SKIP = "presentation.skip" # start, end, restart, immediately continue to next section when continued by user LOOP = "presentation.loop" # start, end, restart, finish animation first when user continues COMPLETE_LOOP = "presentation.complete_loop"
Methods
Attributes
NORMAL
- _generate_next_value_(start, count, last_values)#
Generate the next value when not given.
name: the name of the member start: the initial start value or None count: the number of existing members last_values: the list of values assigned
- _member_type_#
alias of
str
- _new_member_(**kwargs)#
Create and return a new object. See help(type) for accurate signature.
- _value_repr_()#
Return repr(self).