Table Of Contents

Previous topic

FileDirPickerEvent

Next topic

FilePickerCtrl

This Page

phoenix_title FileDropTarget

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


class_hierarchy Inheritance Diagram

Inheritance diagram for class FileDropTarget

Inheritance diagram of FileDropTarget


method_summary Methods Summary

__init__ Constructor.
OnDrop See DropTarget.OnDrop .
OnDropFiles Override this function to receive dropped files.

api Class API



class FileDropTarget(DropTarget)

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

Possible constructors:

FileDropTarget()

Methods



__init__(self)

Constructor.



OnDrop(self, x, y)

See 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