Table Of Contents

Previous topic

TextDataObject

Next topic

TextEntry

This Page

phoenix_title TextDropTarget

A predefined drop target for dealing with text data.


class_hierarchy Inheritance Diagram

Inheritance diagram for class TextDropTarget

Inheritance diagram of TextDropTarget


method_summary Methods Summary

__init__ Constructor.
OnDrop See DropTarget.OnDrop .
OnDropText Override this function to receive dropped text.

api Class API



class TextDropTarget(DropTarget)

A predefined drop target for dealing with text data.

Possible constructors:

TextDropTarget()

Methods



__init__(self)

Constructor.



OnDrop(self, x, y)

See 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