drag and drop to a tree item

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.

As usual, I have done the obligatory google and have not found what I am
looking for. Thanks for any and all help in advance.

···

--
Al Niessner

I have never found the companion that was so companionable as solitude.
- From Walden by Henry David Thoreau

The universe is indifferent, and life is brutal; however, it is man's
choice of behavior that makes them malevolent rather than benevolent.

Some will fall in love with life and drink it from a fountain
That is pouring like an avalanche coming down the mountain.
- From the song Pepper by the Butthole Surfers

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!

I have had conceptual problems with the control of the GUI that I am
developing. Upon fixing those problems, this problem became a non-issue,
but thank you very much for your help.

···

On Mon, 2007-10-01 at 12:58 -0700, Robin Dunn wrote:

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.

--
Al Niessner

I have never found the companion that was so companionable as solitude.
- From Walden by Henry David Thoreau

The universe is indifferent, and life is brutal; however, it is man's
choice of behavior that makes them malevolent rather than benevolent.

Some will fall in love with life and drink it from a fountain
That is pouring like an avalanche coming down the mountain.
- From the song Pepper by the Butthole Surfers