472,110 Members | 2,289 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,110 software developers and data experts.

drag and drop with wxPython ?

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
May 22 '07 #1
4 2858
stef 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
The demo that comes with wxWindows has good examples of this.

-Larry
May 22 '07 #2
On May 22, 10:00 am, stef <s.mien...@id.umcn.nlwrote:
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...9%7C%28drag%29
http://wiki.wxpython.org/DragAndDrop...9%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

May 22 '07 #3
ky******@gmail.com wrote:
On May 22, 10:00 am, stef <s.mien...@id.umcn.nlwrote:
>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...9%7C%28drag%29
http://wiki.wxpython.org/DragAndDrop...9%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
May 25 '07 #4
On May 25, 4:46 am, Stef Mientki <S.Mientki-nos...@mailbox.kun.nl>
wrote:
kyoso...@gmail.com wrote:
On May 22, 10:00 am, stef <s.mien...@id.umcn.nlwrote:
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...9%7C%28drag%29
http://wiki.wxpython.org/DragAndDrop...Rearranging?hi...
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
Just an FYI for future reference. Always mention what Python /
wxPython and OS you're using. We probably could have told you that
your problem was using the old version of wxPython sooner.

Have fun!

Mike

May 25 '07 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Lauren Quantrell | last post: by
2 posts views Thread by SamSpade | last post: by
3 posts views Thread by Ajay Krishnan Thampi | last post: by
6 posts views Thread by jojobar | last post: by
5 posts views Thread by ndoe | last post: by
1 post views Thread by Eric von Horst | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.