GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Table of Contents
  • wx.TextDropTarget
  • Show Source
  • index
  • modules
  • next
  • previous
  • Home
  • Gallery
  • wx

This view

  • Original page
  • New address

GeezerVison is showing docs.wxpython.org — wx.TextDropTarget — wxPython 4.3.2 Docs

phoenix_title wx.TextDropTarget¶

A predefined drop target for dealing with text data.

See also

Drag and Drop Overview, wx.DropSource, wx.DropTarget, wx.FileDropTarget


class_hierarchy Class Hierarchy¶

Inheritance diagram for class TextDropTarget:

Inheritance diagram of 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, 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

© Copyright 2012-2026, The wxPython Team. Created using Sphinx 9.1.0 and the python-docs-theme.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.