3
7ßL]Ü  ã               @   s,   d dl mZ d dlmZ G dd„ deƒZdS )é    )ÚInstance)ÚDockPanec               @   s0   e Zd ZdZedƒZdd„ Zdd„ Zdd„ Zd	S )
ÚEnamlDockPanez* Create a Dock pane for Enaml Components. z*enaml.widgets.toolkit_object.ToolkitObjectc             C   s   t ‚dS )z� Return an Enaml component defining the contents of the DockPane.

        Returns
        -------
        component : ToolkitObject
        N)ÚNotImplementedError)Úself© r   ú@/tmp/pip-install-5sebvq2j/pyface/pyface/tasks/enaml_dock_pane.pyÚcreate_component   s    zEnamlDockPane.create_componentc             C   s4   | j ƒ | _| jjƒ  | jjs&| jjƒ  | jjj}|S )z? Return the toolkit-specific control that represents the pane. )r	   Ú	componentZ
initializeZproxy_is_activeZactivate_proxyÚproxyZwidget)r   ÚparentÚcontentsr   r   r   Úcreate_contents   s    



zEnamlDockPane.create_contentsc             C   sB   | j }|dk	r2|jƒ  | jjƒ  |jdƒ |jƒ  d| _ d| _dS )z@ Destroy the toolkit-specific control that represents the pane. N)ÚcontrolZhider
   ÚdestroyÚ	setParentZdeleteLater)r   r   r   r   r   r   4   s    

zEnamlDockPane.destroyN)	Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r
   r	   r   r   r   r   r   r   r      s
   r   N)Z
traits.apir   Zpyface.tasks.dock_paner   r   r   r   r   r   Ú<module>   s   