3
<Ad]Ð  ã               @   s@   d Z ddlmZmZmZmZ G dd„ deƒZG dd„ deƒZdS )z! Mix-in class for split widgets. é    )ÚCallableÚEnumÚFloatÚ	Interfacec               @   sD   e Zd ZdZedddƒ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.
    ZverticalÚ
horizontalg      à?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   úo/home/yuhw/wc/wire-cell-python/wcpy/lib/python3.6/site-packages/pyface-6.1.2-py3.6.egg/pyface/i_split_widget.pyÚ_create_splitter2   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   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   r   Ú_create_rhsN   s    zISplitWidget._create_rhsN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   Ú	directionr   Úratior   ÚlhsÚrhsr   r   r   r   r   r   r   r      s   	r   c               @   s   e Zd ZdZdS )ÚMSplitWidgetzw The mixin class that contains common code for toolkit specific
    implementations of the ISplitWidget interface.
    N)r   r   r   r   r   r   r   r   r   ]   s   r   N)	r   Z
traits.apir   r   r   r   r   Úobjectr   r   r   r   r   Ú<module>   s   H