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¶
Inheritance diagram for class FileDropTarget:
Methods Summary¶Constructor. |
|
See |
|
Override this function to receive dropped files. |
Class API¶wx.FileDropTarget(DropTarget)¶Possible constructors:
FileDropTarget() -> None
This is a drop target which accepts files (dragged from File Manager or Explorer).
__init__(self)¶Constructor.
None
OnDrop(self, x : int, y : int)¶See wx.DropTarget.OnDrop .
This function is implemented appropriately for files, and calls OnDropFiles .
x (int) –
y (int) –
bool
OnDropFiles(self, x : int, y : int, filenames : List[str])¶Override this function to receive dropped files.
x (int) – The x coordinate of the mouse.
y (int) – The y coordinate of the mouse.
filenames (list of strings) – An array of filenames.
bool