wxPython: some help with Drag&Drop
tenax.raccoon at gmail.com
Tue Mar 11 00:10:50 CET 2008
Eric von Horst wrote:
> I need some advice on Drag&Drop.
> What I want to achieve is the following:
> - I have a window that is divided in two : on the left hand I
> have a wx.TreeCtlr and on the other hand a wx.StaticBitmap
> I want to be able to drag an item from the tree onto the static
> I know how to do drag&drop in a treeCtrl but is there a way that I can
> make the bitmap detect that something has been dropped on it?
> I would only need to know the name of the tree obj that was dropped on
> the bitmap (and the location)
> Any help much appreciated
Take a look at the wxPython demo . In the "Clipboard and DnD"
section, there's the "CustomDragAndDrop" demo. It sounds like that's
exactly what you want. (It uses the wx.PyDropTarget class to
accomplish this, BTW.)
 The demo package for your platform can be found at "http://
More information about the Python-list