how to drag image in a wxpython frame

2019-07-18 05:35发布

what is the easiest way to drag an image ( or text) in a wx window ?
i need steps or a small example on how to do that.
thanx in advance

2条回答
何必那么认真
2楼-- · 2019-07-18 06:30

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

查看更多
祖国的老花朵
3楼-- · 2019-07-18 06:32

Install wxpython demos, there is DragImage demostration in it.

查看更多
登录 后发表回答