wxpython ogl 包拖拽事件 [英] wxpython ogl package drag event

查看:28
本文介绍了wxpython ogl 包拖拽事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在 wxpython 中测试 ogl 包.

I'm testing the ogl package in wxpython.

我想拖动一个形状.当我拖动它时,我希望同时移动第二个形状.问题是我没有找到移动/拖动事件.仅移动前和移动后事件.

I want to drag a shape. And when I do drag it, I want a second shape to move at the same time. The problem is that I have not found a move/drag event. Only pre and post move events.

我能想到的唯一解决方案是隐藏第二个形状,并在拖动完成后在新位置重新绘制.

The only solution I can think of is to hide the second shape, and redraw it at the new position when the dragging is done.

不再维护 ogl 包了吗?

And is the ogl package no longer maintained?

欧尔扬·彼得森

推荐答案

OGL 是 wxWidgets 中 contrib 目录的一部分,直到 2.8 版;contrib 已在主干中删除,不再是 wxWidgets 的一部分.您现在可以在 wxCode 上找到 OGL,但其状态显示为未维护

OGL was part of the contrib directory in wxWidgets up until version 2.8; contrib has been removed in trunk and is no longer part of wxWidgets proper. You can find OGL at wxCode now, but its status is shown there as unmaintained as well.

如果您还没有开始使用 OGL,最好不要这样做.

If you have not started yet using OGL, it's probably better not to do so.

这篇关于wxpython ogl 包拖拽事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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