
    li                        d Z ddlmZ ddlmZ ddlmZ ddlmZ ddl	m
Z
 ddlmZ erddlmZ dd	lmZ dd
lmZ ddlmZ  G d de
      Zy)zGroupShape and related objects.    )annotations)TYPE_CHECKING)ShadowFormat)MSO_SHAPE_TYPE)	BaseShape)lazyproperty)ActionSetting)CT_GroupShapeGroupShapes)ProvidesPartc                  ~     e Zd ZdZd fdZed	d       Zed
d       Zedd       Z	edd       Z
edd       Z xZS )
GroupShapez2A shape that acts as a container for other shapes.c                4    t         |   ||       || _        y )N)super__init___grpSp)selfgrpSpparent	__class__s      O/var/www/html/eduruby.in/venv/lib/python3.12/site-packages/pptx/shapes/group.pyr   zGroupShape.__init__   s    '    c                    t        d      )zoUnconditionally raises `TypeError`.

        A group shape cannot have a click action or hover action.
        z(a group shape cannot have a click action)	TypeErrorr   s    r   click_actionzGroupShape.click_action   s     BCCr   c                     y)zUnconditionally |False|.

        A group shape does not have a textframe and cannot itself contain text. This does not
        impact the ability of shapes contained by the group to each have their own text.
        F r   s    r   has_text_framezGroupShape.has_text_frame"   s     r   c                @    t        | j                  j                        S )z|ShadowFormat| object representing shadow effect for this group.

        A |ShadowFormat| object is always returned, even when no shadow is explicitly defined on
        this group shape (i.e. when the group inherits its shadow behavior).
        )r   r   grpSpPrr   s    r   shadowzGroupShape.shadow+   s     DKK//00r   c                "    t         j                  S )zMember of :ref:`MsoShapeType` identifying the type of this shape.

        Unconditionally `MSO_SHAPE_TYPE.GROUP` in this case
        )r   GROUPr   s    r   
shape_typezGroupShape.shape_type4   s     ###r   c                4    ddl m}  || j                  |       S )z|GroupShapes| object for this group.

        The |GroupShapes| object provides access to the group's member shapes and provides methods
        for adding new ones.
        r   r   )pptx.shapes.shapetreer   _element)r   r   s     r   shapeszGroupShape.shapes<   s     	64==$//r   )r   r
   r   r   )returnr	   )r+   bool)r+   r   )r+   r   )r+   r   )__name__
__module____qualname____doc__r   r   r   propertyr    r#   r&   r*   __classcell__)r   s   @r   r   r      sq    < D D   1 1 $ $ 0 0r   r   N)r0   
__future__r   typingr   pptx.dml.effectr   pptx.enum.shapesr   pptx.shapes.baser   	pptx.utilr   pptx.actionr	   pptx.oxml.shapes.groupshaper
   r(   r   
pptx.typesr   r   r   r   r   <module>r<      s5    % "   ( + & ")91'20 20r   