wxpython Drag and Drop


Introduction

wxPython provides several different kinds of drag and drop. You can have one of the following types: wx.FileDropTarget, wx.TextDropTarget, or wx.PyDropTarget.

The first two are pretty self-explanatory. The last one, wx.PyDropTarget, is just a loose wrapper around wx.DropTarget itself. It adds a couple extra convenience methods that the plain wx.DropTarget doesn't have. We'll start with a wx.FileDropTarget example.