.. wxPython Phoenix documentation This file was generated by Phoenix's sphinx generator and associated tools, do not edit by hand. Copyright: (c) 2011-2020 by Total Control Software License: wxWindows License .. include:: headings.inc .. _wx.TextDropTarget: ========================================================================================================================================== |phoenix_title| **wx.TextDropTarget** ========================================================================================================================================== A predefined drop target for dealing with text data. .. seealso:: :ref:`Drag and Drop Overview `, :ref:`wx.DropSource`, :ref:`wx.DropTarget`, :ref:`wx.FileDropTarget` | |class_hierarchy| Class Hierarchy ================================= .. raw:: html
Inheritance diagram for class TextDropTarget:
| |method_summary| Methods Summary ================================ ================================================================================ ================================================================================ :meth:`~wx.TextDropTarget.__init__` Constructor. :meth:`~wx.TextDropTarget.OnDrop` See :meth:`wx.DropTarget.OnDrop` . :meth:`~wx.TextDropTarget.OnDropText` Override this function to receive dropped text. ================================================================================ ================================================================================ | |api| Class API =============== .. class:: wx.TextDropTarget(DropTarget) **Possible constructors**:: TextDropTarget() A predefined drop target for dealing with text data. .. method:: __init__(self) Constructor. .. method:: OnDrop(self, x, y) See :meth:`wx.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`