o
    7 ¾h¸  ã                   @  s”   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„ de
ƒZdS )zGroupShape and related objects.é    )Úannotations)ÚTYPE_CHECKING)ÚShadowFormat)ÚMSO_SHAPE_TYPE)Ú	BaseShape)Úlazyproperty)ÚActionSetting)ÚCT_GroupShape©ÚGroupShapes)ÚProvidesPartc                      sh   e Zd ZdZd‡ fdd„Zedd
d„ƒZeddd„ƒZeddd„ƒZ	eddd„ƒZ
eddd„ƒZ‡  ZS )Ú
GroupShapez2A shape that acts as a container for other shapes.ÚgrpSpr	   Úparentr   c                   s   t ƒ  ||¡ || _d S )N)ÚsuperÚ__init__Ú_grpSp)Úselfr   r   ©Ú	__class__© úY/var/www/html/figdemos/bartoux_crm/venv/lib/python3.10/site-packages/pptx/shapes/group.pyr      s   
zGroupShape.__init__Úreturnr   c                 C  s   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   r   r   r   Úclick_action   s   zGroupShape.click_actionÚboolc                 C  s   dS )zÙUnconditionally |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.
        Fr   r   r   r   r   Úhas_text_frame"   s   zGroupShape.has_text_framer   c                 C  s   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   r   r   r   Úshadow+   s   zGroupShape.shadowr   c                 C  s   t jS )z‡Member of :ref:`MsoShapeType` identifying the type of this shape.

        Unconditionally `MSO_SHAPE_TYPE.GROUP` in this case
        )r   ÚGROUPr   r   r   r   Ú
shape_type4   s   zGroupShape.shape_typer   c                 C  s   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   r   r   r   Úshapes<   s   zGroupShape.shapes)r   r	   r   r   )r   r   )r   r   )r   r   )r   r   )r   r   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   Úpropertyr   r   r!   r$   Ú__classcell__r   r   r   r   r      s    r   N)r(   Ú
__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   r   Ú<module>   s    