By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,089 Members | 2,159 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,089 IT Pros & Developers. It's quick & easy.

drag and drop with wxPython ?

P: n/a
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
Share this Question
Share on Google+
4 Replies


P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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.