.. include:: headings.inc .. _TextDropTarget: ========================================================================================================================================== |phoenix_title| **TextDropTarget** ========================================================================================================================================== A predefined drop target for dealing with text data. .. seealso:: :ref:`Drag and Drop Overview `, :ref:`DropSource`, :ref:`DropTarget`, :ref:`FileDropTarget` | |class_hierarchy| Inheritance Diagram ===================================== Inheritance diagram for class **TextDropTarget** .. raw:: html

Inheritance diagram of TextDropTarget

| |method_summary| Methods Summary ================================ ================================================================================ ================================================================================ :meth:`~TextDropTarget.__init__` Constructor. :meth:`~TextDropTarget.OnDrop` See :meth:`DropTarget.OnDrop` . :meth:`~TextDropTarget.OnDropText` Override this function to receive dropped text. ================================================================================ ================================================================================ | |api| Class API =============== .. class:: TextDropTarget(DropTarget) A predefined drop target for dealing with text data. **Possible constructors**:: TextDropTarget() .. method:: __init__(self) Constructor. .. method:: OnDrop(self, x, y) See :meth:`DropTarget.OnDrop` . This function is implemented appropriately for text, and calls :meth:`OnDropText` . :param `x`: :type `x`: int :param `y`: :type `y`: int :rtype: `bool` .. method:: OnDropText(self, x, y, data) Override this function to receive dropped text. :param `x`: The x coordinate of the mouse. :type `x`: int :param `y`: The y coordinate of the mouse. :type `y`: int :param `data`: The data being dropped: a `String`. :type `data`: string :rtype: `bool`