Phoenix Logo

phoenix_title wx.FileDropTarget

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


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()

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


Methods



__init__(self)

Constructor.



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