a
    §ˆc|  ã                   @   s    d dl mZ G dd„ deƒZdS )é    )ÚResourceFactoryc                   @   s    e Zd ZdZdd„ Zdd„ ZdS )ÚPyfaceResourceFactoryz2 The implementation of a shared resource manager. c                 C   s   t |dƒ}| ¡ }| ¡  |S )z; Creates an image from the data in the specified filename. Úrb)ÚopenÚreadÚclose)ÚselfÚfilenameÚfÚdata© r   úb/home/yuhw/wc/wire-cell-python/wcpy/lib/python3.9/site-packages/pyface/ui/null/resource_manager.pyÚimage_from_file   s    
z%PyfaceResourceFactory.image_from_filec                 C   s   |S )z+ Creates an image from the specified data. r   )r   r   r   r   r   Úimage_from_data   s    z%PyfaceResourceFactory.image_from_dataN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   r   r   r   r      s   	r   N)Zpyface.resource.apir   r   r   r   r   r   Ú<module>   s   