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.FileDropTarget
  • Show Source
  • index
  • modules
  • next
  • previous
  • Home
  • Gallery
  • wx

This view

  • Original page
  • New address

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

phoenix_title wx.FileDropTarget¶

This is a drop target which accepts files (dragged from File Manager or Explorer).

See also

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


class_hierarchy Class Hierarchy¶

Inheritance diagram for class FileDropTarget:

Inheritance diagram of FileDropTarget


method_summary Methods Summary¶

__init__

Constructor.

OnDrop

See wx.DropTarget.OnDrop .

OnDropFiles

Override this function to receive dropped files.


api Class API¶

class wx.FileDropTarget(DropTarget)¶

Possible constructors:

FileDropTarget() -> None

This is a drop target which accepts files (dragged from File Manager or Explorer).


Methods¶

__init__(self)¶

Constructor.

Return type:

None



OnDrop(self, x, y)¶

See wx.DropTarget.OnDrop .

This function is implemented appropriately for files, and calls OnDropFiles .

Parameters:
  • x (int)

  • y (int)

Return type:

bool



OnDropFiles(self, x, y, filenames)¶

Override this function to receive dropped files.

Parameters:
  • x (int) – The x coordinate of the mouse.

  • y (int) – The y coordinate of the mouse.

  • filenames (list of strings) – An array of filenames.

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.