wx.TextDropTarget¶
A predefined drop target for dealing with text data.
Class Hierarchy¶
Methods Summary¶
Constructor. |
|
See |
|
Override this function to receive dropped text. |
Class API¶
- class wx.TextDropTarget(DropTarget)¶
Possible constructors:
TextDropTarget() -> None
A predefined drop target for dealing with text data.
Methods¶
- __init__(self)¶
Constructor.
- Return type:
None
- OnDrop(self, x, y)¶
See
wx.DropTarget.OnDrop
.This function is implemented appropriately for text, and calls
OnDropText
.- Parameters:
x (int)
y (int)
- Return type:
bool
- OnDropText(self, x, y, data)¶
Override this function to receive dropped text.
- Parameters:
x (int) – The x coordinate of the mouse.
y (int) – The y coordinate of the mouse.
data (string) – The data being dropped: a String .
- Return type:
bool