a
    ¦ˆcF  ã                   @   sL   d Z ddlmZmZmZmZ ddlmZ G dd„ deƒZG dd„ deƒZ	dS )	z! Mix-in class for split widgets. é    )ÚCallableÚFloatÚ	HasTraitsÚ	Interface)ÚOrientationc                   @   s>   e Zd ZdZeƒ ZedƒZeZ	eZ
dd„ Zdd„ Zdd„ Zd	S )
ÚISplitWidgetz| Mix-in class for split widgets.

    A split widget is one that is split in two either horizontally or
    vertically.
    ç      à?c                 C   s   dS )aC   Create the toolkit-specific control that represents the widget.

        Parameters
        ----------
        parent : toolkit control
            The toolkit control that contains the splitter.

        Returns
        -------
        splitter : toolkit control
            The toolkit control for the splitter.
        N© ©ÚselfÚparentr	   r	   úX/home/yuhw/wc/wire-cell-python/wcpy/lib/python3.9/site-packages/pyface/i_split_widget.pyÚ_create_splitter0   s    zISplitWidget._create_splitterc                 C   s   dS ©a%   Creates the left hand/top panel depending on the direction.

        Parameters
        ----------
        parent : toolkit control
            The splitter's toolkit control.

        Returns
        -------
        lhs : toolkit control
            The toolkit control for the lhs.
        Nr	   r
   r	   r	   r   Ú_create_lhs>   s    zISplitWidget._create_lhsc                 C   s   dS ©a)   Creates the right hand/bottom panel depending on the direction.

        Parameters
        ----------
        parent : toolkit control
            The splitter's toolkit control.

        Returns
        -------
        rhs : toolkit control
            The toolkit control for the rhs.
        Nr	   r
   r	   r	   r   Ú_create_rhsL   s    zISplitWidget._create_rhsN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   Ú	directionr   Úratior   ÚlhsÚrhsr   r   r   r	   r	   r	   r   r      s   r   c                   @   s6   e Zd ZdZeƒ ZedƒZeZ	eZ
dd„ Zdd„ ZdS )ÚMSplitWidgetzw The mixin class that contains common code for toolkit specific
    implementations of the ISplitWidget interface.
    r   c                 C   s
   t ƒ ‚dS r   ©ÚNotImplementedErrorr
   r	   r	   r   r   r   s    zMSplitWidget._create_lhsc                 C   s
   t ƒ ‚dS r   r   r
   r	   r	   r   r   �   s    zMSplitWidget._create_rhsN)r   r   r   r   r   r   r   r   r   r   r   r   r   r	   r	   r	   r   r   [   s   r   N)
r   Z
traits.apir   r   r   r   Zpyface.ui_traitsr   r   r   r	   r	   r	   r   Ú<module>   s   H