phoenix_title wx.TextDropTarget

A predefined drop target for dealing with text data.


class_hierarchy Class Hierarchy

Inheritance diagram for class TextDropTarget:

method_summary Methods Summary

__init__

Constructor.

OnDrop

See wx.DropTarget.OnDrop .

OnDropText

Override this function to receive dropped text.


api 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: int, y: int)

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: int, y: int, data: str)

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