a
    §ˆcR  ã                   @   s^   d dl Z d dlmZmZmZmZmZ d dlmZ d dlm	Z	m
Z
 ee	ƒG dd„ de
eƒƒZdS )é    N)ÚAnyÚ	HasTraitsÚListÚPropertyÚprovides)ÚStr)ÚIImageResourceÚMImageResourcec                   @   sF   e Zd ZdZeƒ ZeeƒZeƒ Z	e
ƒ Zd	dd„Zd
dd„Zdd„ ZdS )ÚImageResourcez† The 'null' toolkit specific implementation of an ImageResource.  See the
    IImageResource interface for the API documentation.
    Nc                 C   s
   |   |¡S ©N©Zcreate_image©ÚselfÚsize© r   ú`/home/yuhw/wc/wire-cell-python/wcpy/lib/python3.9/site-packages/pyface/ui/null/image_resource.pyÚcreate_bitmap-   s    zImageResource.create_bitmapc                 C   s
   |   |¡S r   r   r   r   r   r   Úcreate_icon0   s    zImageResource.create_iconc                 C   s0   |   ¡ }|d ur"tj | jj¡}n
|  ¡ j}|S r   )Z_get_refÚosÚpathÚabspathÚ_refÚfilenameZ_get_image_not_foundÚabsolute_path)r   Úrefr   r   r   r   Ú_get_absolute_path7   s
    
z ImageResource._get_absolute_path)N)N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   r   r   Únamer   Úsearch_pathr   r   r   r   r   r   r   r
      s   

r
   )r   Z
traits.apir   r   r   r   r   r   Zpyface.i_image_resourcer   r	   r
   r   r   r   r   Ú<module>   s
   