Source code for ooodev.utils.kind.drawing_name_space_kind

from enum import Enum
from ooodev.utils.kind import kind_helper

[docs]class DrawingNameSpaceKind(str, Enum): """ Draw Namespace kind. See Also: :py:meth:`.Draw.find_shape_by_type` """ BULLETS_TEXT = "" SHAPE_TYPE_FOOTER = "" SHAPE_TYPE_NOTES = "" SHAPE_TYPE_PAGE = "" SUBTITLE_TEXT = "" TITLE_TEXT = "" OLE2_SHAPE = "" def __str__(self) -> str: return self.value
[docs] @staticmethod def from_str(s: str) -> "DrawingNameSpaceKind": """ Gets an ``DrawingNameSpaceKind`` instance from string. Args: s (str): String that represents the name of an enum Name. ``s`` is case insensitive and can be ``CamelCase``, ``pascal_case`` , ``snake_case``, ``hyphen-case``, ``normal case``. Raises: ValueError: If input string is empty. AttributeError: If unable to get ``DrawingNameSpaceKind`` instance. Returns: DrawingNameSpaceKind: Enum instance. """ return kind_helper.enum_from_string(s, DrawingNameSpaceKind)