473,394 Members | 1,840 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 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 2953
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: marco | last post by:
I've got a wxpython application and when i drag'n' drop files from(linux) rox/nautilus/konqueror to my app i've got strange chars in filenames (on win32 : it works well) example: - my dir "my...
0
by: Lauren Quantrell | last post by:
I'm trying to drop a file from Windows Explorer (or desktop, etc.) onto a field in Access2K and capture the full file path. I found an posting below that says this is possible but I cannot...
2
by: SamSpade | last post by:
There seems to be two ways to put things on the clipboard ( I don't mean different formats): SetClipboardData and OleSetClipboard If I want to get data off the clipboard do I care how it was put...
3
by: Ajay Krishnan Thampi | last post by:
I have a slight problem implementing 'drag and drop' from a datagrid to a tree-view. I have pasted my code below. Someone please advice me on what to do...pretty blur right now. ==code== ...
6
by: jojobar | last post by:
Hello, I look at the asp.net 2.0 web parts tutorial on the asp.net web site. I tried to run it under firefox browser but it did not run. If I want to use this feature in a commercial product...
2
by: praveen0437 | last post by:
hi is there is any IDE which provides drag &drop facility for designing wxpython
5
by: ndoe | last post by:
i need a source code in python for example to make application with drag and drop fiture,i can't understand learning from wxPython2.6 docs,Thank for help
5
by: Romulo NF | last post by:
Greetings, I´m back here to show the new version of the drag & drop table columns (original script ). I´ve found some issues with the old script, specially when trying to use 2 tables with...
1
by: Eric von Horst | last post by:
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.