A predefined drop target for dealing with text data.
See also
Drag and Drop Overview, wx.DropSource, wx.DropTarget, wx.FileDropTarget
Constructor. |
|
See |
|
Override this function to receive dropped text. |
wx.
TextDropTarget
(DropTarget)¶Possible constructors:
TextDropTarget()
A predefined drop target for dealing with text data.
__init__
(self)¶Constructor.
OnDrop
(self, x, y)¶See wx.DropTarget.OnDrop
.
This function is implemented appropriately for text, and calls OnDropText
.
x (int) –
y (int) –
bool
OnDropText
(self, x, y, data)¶Override this function to receive dropped text.
x (int) – The x coordinate of the mouse.
y (int) – The y coordinate of the mouse.
data (string) – The data being dropped: a String .
bool