473,908 Members | 6,609 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2999
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.u mcn.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.u mcn.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.u mcn.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
2086
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 photos" will become "/home/marc/my%20photos" - a dir "fêtes à strass" will become (something like this) "/home/marc/f%A8%CFtes%20%8F%AC%20strass" it seems the filenames are "escaped" ... is there a way to got the good
0
2613
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 simutate it. Can anyone help? Thanks ************************** previous post: Message 1 in thread
2
4347
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 there? What about Drag/Drop; is there more than one way for the source to make data available Is it always OLE?
3
10426
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== using System; using System.Drawing; using System.Collections; using System.ComponentModel;
6
3569
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 where the user can run on firefox/mozilla, what would be a good approach. 1. Should I overwrite the javascript code drag-and-drop to make it more browser independent. If I want to go this route, can anybody provide me a
2
2766
by: praveen0437 | last post by:
hi is there is any IDE which provides drag &drop facility for designing wxpython
5
8742
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
13838
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 drag&drop on the same page (which was not possible). Now i´ve a new concept of the script, more object oriented. I´ve also commented the whole code so you guys can easier understand it engine. What exactly we need when trying to make a column drag &...
1
1869
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 wx.StaticBitmap I want to be able to drag an item from the tree onto the static bitmap.
0
10031
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
11337
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10913
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
11042
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9721
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
7246
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
6134
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
4336
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3355
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.