3
7ßL]Ì  ã               @   s    d dl mZ G dd„ deƒZdS )é    )Ú	Interfacec               @   s    e Zd ZdZdd„ Zdd„ ZdS )ÚIDropHandlerzŒ Interface for a drop event handler, which provides API to check if the
    drop can be handled or not, and then handle it if possible.
    c             C   s   dS )aX   Whether or not a drag event can be handled

        This is used to give feedback to the user about whether a drop is
        possible via the shape of the cursor or similar indicators.

        Parameters
        ----------
        event : drag event
            A drag event with information about the object being dragged.
        target : toolkit widget
            The widget that would be dropped on.

        Returns
        -------
        can_drop : bool
            True if the current drop handler can handle the given drag
            event occurring on the given target widget.
        N© )ÚselfÚeventÚtargetr   r   ú9/tmp/pip-install-5sebvq2j/pyface/pyface/i_drop_handler.pyÚcan_handle_drop	   s    zIDropHandler.can_handle_dropc             C   s   dS )a#   Performs drop action when drop event occurs on target widget.

        Parameters
        ----------
        event : drop event
            A drop event with information about the object being dropped.
        target : toolkit widget
            The widget that would be dropped on
        Nr   )r   r   r   r   r   r   Úhandle_drop   s    zIDropHandler.handle_dropN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r	   r
   r   r   r   r   r      s   r   N)Z
traits.apir   r   r   r   r   r   Ú<module>   s   