mirror of
https://github.com/3b1b/manim.git
synced 2025-04-13 09:47:07 +00:00
20 lines
708 B
Python
20 lines
708 B
Python
from manimlib.utils.config_ops import digest_config
|
|
|
|
# Currently, this is only used by both Scene and Mobject.
|
|
# Still, we abstract its functionality here, albeit purely nominally.
|
|
# All actual implementation has to be handled by derived classes for now.
|
|
|
|
# TODO: Move the "remove" functionality of Scene to this class
|
|
|
|
|
|
class Container(object):
|
|
def __init__(self, **kwargs):
|
|
digest_config(self, kwargs)
|
|
|
|
def add(self, *items):
|
|
raise Exception(
|
|
"Container.add is not implemented; it is up to derived classes to implement")
|
|
|
|
def remove(self, *items):
|
|
raise Exception(
|
|
"Container.remove is not implemented; it is up to derived classes to implement")
|