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()

A predefined drop target for dealing with text data.


Methods

__init__(self)

Constructor.



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