wx.FileDropTarget¶
This is a drop target which accepts files (dragged from File Manager or Explorer).
Class Hierarchy¶
Methods Summary¶
Constructor. |
|
See |
|
Override this function to receive dropped files. |
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