[wxPython-users] drag and drop to a tree item

Robin Dunn robin at alldunn.com
Mon Oct 1 12:58:24 PDT 2007


Al Niessner wrote:
> Okay, I can drag and drop to a TreeCtrl but not to a specific element in
> the tree. For instance, I want to select some stuff from a list and then
> move it to a specific node in my tree. In other words, I want to
> organize into a tree an unorganized list using drag and drop. However, I
> do see anyway to tie the wx.DropTarget object to anything other than a
> window. Also, I could not find a function for converting x,y back to a
> TreeItemId. Either would work for me.

Take a look at wx.TreeCtrl's HitTest method.

-- 
Robin Dunn
Software Craftsman
http://wxPython.org  Java give you jitters?  Relax with wxPython!





More information about the wxpython-users mailing list