Table Of Contents

Previous topic

DragResult

Next topic

DropSource

This Page

phoenix_title DropFilesEvent

This class is used for drop files events, that is, when files have been dropped onto the window.

This functionality is currently only available under Windows.

The window must have previously been enabled for dropping by calling Window.DragAcceptFiles .

Important note: this is a separate implementation to the more general drag and drop implementation documented in the Drag and Drop Overview. It uses the older, Windows message-based approach of dropping files.

events Events Emitted by this Class

Handlers bound for the following event types will receive a DropFilesEvent parameter.

  • EVT_DROP_FILES: Process a wxEVT_DROP_FILES event.

MSW port.

Availability

Only available for MSW.


class_hierarchy Inheritance Diagram

Inheritance diagram for class DropFilesEvent

Inheritance diagram of DropFilesEvent


method_summary Methods Summary

__init__ Constructor.
GetFiles Returns an array of filenames.
GetNumberOfFiles Returns the number of files dropped.
GetPosition Returns the position at which the files were dropped.

api Class API



class DropFilesEvent(Event)

This class is used for drop files events, that is, when files have been dropped onto the window.

Possible constructors:

DropFilesEvent(id=0, files=None)

Methods



__init__(self, id=0, files=None)

Constructor.

Parameters:
  • id (EventType) –
  • noFiles (int) –
  • files (string) –


GetFiles(self)

Returns an array of filenames.

Return type:PyObject


GetNumberOfFiles(self)

Returns the number of files dropped.

Return type:int


GetPosition(self)

Returns the position at which the files were dropped.

Returns an array of filenames.

Return type: Point

Properties



Files

See GetFiles



NumberOfFiles

See GetNumberOfFiles



Position

See GetPosition