drag and drop with wxPython ?

kyosohma at gmail.com kyosohma at gmail.com
Tue May 22 15:44:00 EDT 2007


On May 22, 10:00 am, stef <s.mien... at id.umcn.nl> wrote:
> hello,
>
> I'm trying to move from Delphi to Python
> (move from MatLab to Python already succeeded, also thanks to this
> discussion group).
>  From the discussions in this list about "the best" GUI for Python,
> it now seems to me that wxPython is thé choice for my kind of applications.
>
> I've no experience with wxPython yet,
> I just run a few examples and indeed it looks good (as expected from the
> discussions in this list).
>
> What I really need at this moment for a new project,
> (and I coulnd't find any example, lot of broken links ;-)
> is how to implement some drag & drop facilities,
> both to drag and drop normal button,
> but also to drag and drop some dynamically created objects.
> Just like a CAD program, but far more simpler.
>
> Does anyone has an example how to drag & drop components with wxPython ?
>
> thanks,
> Stef Mientki

Stef,

wxPython's wiki has a couple examples:

http://wiki.wxpython.org/DragAndDrop?highlight=%28drop%29%7C%28drag%29
http://wiki.wxpython.org/DragAndDropWithFolderMovingAndRearranging?highlight=%28drop%29%7C%28drag%29

I think Larry meant to say that the wxPython demo has an example. It's
under the "Clipboard and DnD" category.

For lots of help from people that create wxPython and its widgets,
check out the wxPython user's group here: http://www.wxpython.org/maillist.php

Mike




More information about the Python-list mailing list