.. include:: headings.inc .. _FileDropTarget: ========================================================================================================================================== |phoenix_title| **FileDropTarget** ========================================================================================================================================== This is a drop target which accepts files (dragged from File Manager or Explorer). .. seealso:: :ref:`Drag and Drop Overview `, :ref:`DropSource`, :ref:`DropTarget`, :ref:`TextDropTarget` | |class_hierarchy| Inheritance Diagram ===================================== Inheritance diagram for class **FileDropTarget** .. raw:: html

Inheritance diagram of FileDropTarget

| |method_summary| Methods Summary ================================ ================================================================================ ================================================================================ :meth:`~FileDropTarget.__init__` Constructor. :meth:`~FileDropTarget.OnDrop` See :meth:`DropTarget.OnDrop` . :meth:`~FileDropTarget.OnDropFiles` Override this function to receive dropped files. ================================================================================ ================================================================================ | |api| Class API =============== .. class:: FileDropTarget(DropTarget) This is a drop target which accepts files (dragged from File Manager or Explorer). **Possible constructors**:: FileDropTarget() .. method:: __init__(self) Constructor. .. method:: OnDrop(self, x, y) See :meth:`DropTarget.OnDrop` . This function is implemented appropriately for files, and calls :meth:`OnDropFiles` . :param `x`: :type `x`: int :param `y`: :type `y`: int :rtype: `bool` .. method:: OnDropFiles(self, x, y, filenames) Override this function to receive dropped files. :param `x`: The x coordinate of the mouse. :type `x`: int :param `y`: The y coordinate of the mouse. :type `y`: int :param `filenames`: An array of filenames. :type `filenames`: list of strings :rtype: `bool`