3
8Ad]R  ã               @   sB   d Z ddlmZ ddlmZ ddlmZ eƒ ZG dd„ deƒZdS )	z~ Defines the concrete implementations of the traits Toolkit interface for
    the 'null' (do nothing) user interface toolkit.
é    )Úabsolute_importé   )ÚToolkit)ÚEditorFactoryc                   sD   e Zd Zdd„ Zdd„ Zdd„ Zdd„ Zd	d
„ Z‡ fdd„Z‡  Z	S )Ú
GUIToolkitc             O   s   ddl m} |j||ŽS )Né   )Úcolor_trait)Ú r   Z	NullColor)ÚselfÚargsÚtraitsÚct© r   úq/home/yuhw/wc/wire-cell-python/wcpy/lib/python3.6/site-packages/traitsui-6.1.2-py3.6.egg/traitsui/null/toolkit.pyr   2   s    zGUIToolkit.color_traitc             O   s   ddl m} |j||ŽS )Nr   )Úrgb_color_trait)r	   r   ZRGBColor)r
   r   r   Zrgbctr   r   r   r   6   s    zGUIToolkit.rgb_color_traitc             O   s   ddl m} |j||ŽS )Nr   )Ú
font_trait)r	   r   ÚNullFont)r
   r   r   Úftr   r   r   r   :   s    zGUIToolkit.font_traitc             O   s   ddl m} |j||ŽS )Nr   )r   )r	   r   r   )r
   r   r   r   r   r   r   Úkiva_font_trait>   s    zGUIToolkit.kiva_font_traitc             O   s   dd
i}|S )NZWindowColoréì   g     ào@éé   éØ   ç      ð?çž�����í?ç======í?çë?)r   r   r   r   r   )r
   r   r   Ú	constantsr   r   r   r   B   s       zGUIToolkit.constantsc                s&   |j dƒrdd„ S tt| ƒj|ƒS dS )a   Return a method that returns null_editor_factory for any request to
        an unimplemented ``*_editor()`` method.

        This must be __getattribute__ to make sure that we override the
        definitions in the superclass which raise NotImplementedError.
        Z_editorc              _   s   t S )N)Únull_editor_factory)r   Úkwdsr   r   r   Ú<lambda>W   s    z-GUIToolkit.__getattribute__.<locals>.<lambda>N)ÚendswithÚsuperr   Ú__getattribute__)r
   Úattr)Ú	__class__r   r   r"   O   s    
zGUIToolkit.__getattribute__)
Ú__name__Ú
__module__Ú__qualname__r   r   r   r   r   r"   Ú__classcell__r   r   )r$   r   r   ,   s   r   N)	Ú__doc__Ú
__future__r   Ztoolkitr   Zeditor_factoryr   r   r   r   r   r   r   Ú<module>   s
   