Files
Buffteks-Website/buffteks/lib/python3.12/site-packages/docx/drawing/__init__.py
2025-05-08 21:10:14 -05:00

21 lines
504 B
Python

"""DrawingML-related objects are in this subpackage."""
from __future__ import annotations
from typing import TYPE_CHECKING
from docx.oxml.drawing import CT_Drawing
from docx.shared import Parented
if TYPE_CHECKING:
import docx.types as t
class Drawing(Parented):
"""Container for a DrawingML object."""
def __init__(self, drawing: CT_Drawing, parent: t.ProvidesStoryPart):
super().__init__(parent)
self._parent = parent
self._drawing = self._element = drawing