wx.DropFilesEvent

Inheritance diagram for wx.DropFilesEvent:



Description

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 wx.Window.DragAcceptFiles.

Note

This is a separate implementation to the more general drag and drop implementation. It uses the older, Windows message-based approach of dropping files.

Derived From

Event Handling

Event Name Description
wx.EVT_DROP_FILES(func) Process a wx.wxEVT_DROP_FILES event.

Properties Summary

Class API

Methods

__init__(type=wx.wxEVT_NULL, noFiles=0, files=None)

Constructor.

Parameters:

  • type (eventtype)
  • noFiles (int)
  • files (list of strings)

Returns:

wx.DropFilesEvent


GetFiles()

Returns an array of filenames.


Returns:

list of strings


GetNumberOfFiles()

Returns the number of files dropped.


Returns:

int


GetPosition()

Returns the position at which the files were dropped.


Returns:

wx.Point


Properties

Files
See GetFiles
NumberOfFiles
See GetNumberOfFiles
Position
See GetPosition