开发者

how to drag image in a wxpython frame

开发者 https://www.devze.com 2022-12-16 21:27 出处:网络
what is the easiest way to drag an image ( or text)i开发者_JAVA百科n a wx window ? i need steps or a small example on how to do that.

what is the easiest way to drag an image ( or text) i开发者_JAVA百科n a wx window ?

i need steps or a small example on how to do that.

thanx in advance


Take a look at the PseudoDC example in the wxPython demo. The sample displays some random shapes within the window which you can grab and move around, you should be able to apply the concepts for an image.

You can download the win32-docs-demos from here


Install wxpython demos, there is DragImage demostration in it.

0

精彩评论

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