Problem
Most computer users of this day and age use drag and drop (DnD)
instinctively. You probably used it to transfer some files from one folder to another this week! The wxPython GUI (graphical user interface
) toolkit provides DnD functionality baked in. In this recipe, we’ll see just how easy it is to implement!
Solution
wxPython provides several different kinds of drag and drop. You can have one of the following
types
:
wx.FileDropTarget
wx.TextDropTarget
wx.PyDropTarget
The first two are pretty self-explanatory
. The last one, wx.PyDropTarget, is just a loose ...