how to drag image in a wxpython frame

喜欢而已 提交于 2020-01-04 20:24:34

问题


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


回答1:


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




回答2:


Install wxpython demos, there is DragImage demostration in it.



来源:https://stackoverflow.com/questions/2062864/how-to-drag-image-in-a-wxpython-frame

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!