3
<Ad]å  ã               @   sJ   d Z ddlmZmZmZmZ ddlmZmZ eeƒG dd„ deeƒƒZ	dS )z$ Enthought pyface package component
é    )ÚAnyÚBoolÚ	HasTraitsÚprovides)ÚIWidgetÚMWidgetc               @   s@   e Zd ZdZeZeZedƒZedƒZ	dd„ Z
dd„ Zdd„ Zd	S )
ÚWidgetzp The toolkit specific implementation of a Widget.  See the IWidget
    interface for the API documentation.
    Tc             C   s    || _ | jdk	r| jj|ƒ dS )z¤ Show or hide the widget.

        Parameter
        ---------
        visible : bool
            Visible should be ``True`` if the widget should be shown.
        N)ÚvisibleÚcontrolZShow)Úselfr	   © r   úm/home/yuhw/wc/wire-cell-python/wcpy/lib/python3.6/site-packages/pyface-6.1.2-py3.6.egg/pyface/ui/wx/widget.pyÚshow3   s    
zWidget.showc             C   s    || _ | jdk	r| jj|ƒ dS )z— Enable or disable the widget.

        Parameter
        ---------
        enabled : bool
            The enabled state to set the widget to.
        N)Úenabledr
   ÚEnable)r   r   r   r   r   Úenable?   s    
zWidget.enablec             C   s   | j d k	r| j jƒ  d | _ d S )N)r
   ZDestroy)r   r   r   r   ÚdestroyK   s    

zWidget.destroyN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r
   Úparentr   r	   r   r   r   r   r   r   r   r   r      s   r   N)
r   Z
traits.apir   r   r   r   Zpyface.i_widgetr   r   r   r   r   r   r   Ú<module>   s   