a
    §ˆc¿  ã                   @   sD   d dl mZ d dlmZmZ d dlmZ eeƒG dd„ deƒƒZdS )é    )Úprovides)Ú	IPILImageÚ	MPILImage)Úresize_imagec                   @   s   e Zd ZdZddd„ZdS )ÚPILImagez8 The toolkit specific implementation of a PILImage.
    Nc                 C   s0   ddl m} || jƒ}|dur(t||ƒS |S dS )av   Creates a Qt image for this image.

        Parameters
        ----------
        size : (int, int) or None
            The desired size as a (width, height) tuple, or None if wanting
            default image size.

        Returns
        -------
        image : QImage
            The toolkit image corresponding to the image and the specified
            size.
        r   )ÚImageQtN)ZPIL.ImageQtr   Úimager   )ÚselfÚsizer   r   © r   úZ/home/yuhw/wc/wire-cell-python/wcpy/lib/python3.9/site-packages/pyface/ui/qt4/pil_image.pyÚcreate_image   s
    

zPILImage.create_image)N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   r   r   r      s   r   N)Z
traits.apir   Zpyface.i_pil_imager   r   Z pyface.ui.qt4.util.image_helpersr   r   r   r   r   r   Ú<module>   s   