469,964 Members | 1,754 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,964 developers. It's quick & easy.

wxPython: some help with Drag&Drop

Hi,

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
bitmap.

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

Erik

Mar 10 '08 #1
1 1715
On Mar 10, 4:04 pm, Eric von Horst <z80vsvi...@hotmail.comwrote:
Hi,

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
bitmap.

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

Erik
I highly recommend posting to the wxPython user's group since they
specialize in this sort of thing: http://wxpython.org/maillist.php

In the mean time, you'll probably want to take a look at their wiki:

http://wiki.wxpython.org/DragAndDrop
http://wiki.wxpython.org/ListControls

There's also a fair amount of data on the subject in their archives.

Mike
Mar 10 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Grey | last post: by
2 posts views Thread by Ivo Tcholakov | last post: by
3 posts views Thread by Goldwind | last post: by
3 posts views Thread by VB Programmer | last post: by
5 posts views Thread by sesar | last post: by
1 post views Thread by rainxy | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.