drag and drop with wxPython ?

Stef Mientki S.Mientki-nospam at mailbox.kun.nl
Fri May 25 05:46:51 EDT 2007


kyosohma at gmail.com wrote:
> 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
> 
thanks Mike and Larry,

I didn't succeed in testing (and understand what you both meant),
because I had an old version of wxPython.
After updating to the last version,
WOW,...
... that demo is really an example how to interatively teach wxPython.
BEAUTIFUL !

cheers,
Stef Mientki

> Mike
> 



More information about the Python-list mailing list