如何在wxpython框架中拖动图像 [英] how to drag image in a wxpython frame

查看:459
本文介绍了如何在wxpython框架中拖动图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在wx窗口中拖动图像(或文本)最简单的方法是什么?

i需要步骤或小例子才能做到这一点。

thanx

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

推荐答案

看看wxPython演示中的PseudoDC示例。该示例在窗口中显示一些可以抓取和移动的随机形状,您应该能够应用图像的概念。

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.

您可以从 win32-docs-demos rel =nofollow noreferrer> here

You can download the win32-docs-demos from here

这篇关于如何在wxpython框架中拖动图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆