开发者

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)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜