***************** wx.DropFilesEvent ***************** Inheritance diagram for `wx.DropFilesEvent`: | .. inheritance-diagram:: 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 <../Widgets/wx.Window.html#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 ^^^^^^^^^^^^^ * `wx.Event `_ * `wx.Object <../Widgets/wx.Object.html>`_ Event Handling ^^^^^^^^^^^^^^ ================================================== ================================================== Event Name Description ================================================== ================================================== wx.EVT_DROP_FILES(func) Process a ``wx.wxEVT_DROP_FILES`` event. ================================================== ================================================== Methods Summary ^^^^^^^^^^^^^^^ * `__init__ <#__init__>`_ * `GetFiles <#GetFiles>`_ * `GetNumberOfFiles <#GetNumberOfFiles>`_ * `GetPosition <#GetPosition>`_ Properties Summary ^^^^^^^^^^^^^^^^^^ * `Files <#Files>`_ * `NumberOfFiles <#NumberOfFiles>`_ * `Position <#Position>`_ Class API ========= Methods ^^^^^^^ .. method:: __init__(type=wx.wxEVT_NULL, noFiles=0, files=None) Constructor. **Parameters:** * `type` (eventtype) * `noFiles` (int) * `files` (list of strings) | **Returns:** `wx.DropFilesEvent `_ -------- .. method:: GetFiles() Returns an array of filenames. | **Returns:** `list of strings` -------- .. method:: GetNumberOfFiles() Returns the number of files dropped. | **Returns:** `int` -------- .. method:: GetPosition() Returns the position at which the files were dropped. | **Returns:** `wx.Point `_ -------- Properties ^^^^^^^^^^ .. attribute:: Files See `GetFiles <#GetFiles>`_ .. attribute:: NumberOfFiles See `GetNumberOfFiles <#GetNumberOfFiles>`_ .. attribute:: Position See `GetPosition <#GetPosition>`_