简体   繁体   中英

How to do drag & drop with wxWidgets module of Python?

I'm using Python and I want to do a drag & drop interface. For example, with a large picture whose size is bigger then the screen, I want to click on it and drag it to see other parts. Something like "google maps"!

In google maps if we click two times we do "zoom" but if we click one time and while pressed, we move the mouse, we move around the map. That's what I want to do!

Is it possible to do this using wxWidgets module of Python? If so, how?

Thanks in advance :)

I found the solution over here: http://www.java2s.com/Code/Python/Event/Mouseactiondrag.htm

With this code I can do what I want!

And the name was only Mouse Drag and not Mouse Drag and Drop (soz)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM