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:

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

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 : int, y : int, filenames : List[str])

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