本文介绍了在pygame物理模拟中添加wxPython GUI元素的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我做了一个pygame物理模拟-弹丸运动",但是它缺乏交互性,例如接受发射角度,速度等.我想添加带有增加减少箭头的输入框,但不知道如何操作它.谢谢您的帮助.
I have made a pygame physics simulation--'a projectile motion' but it lacks interactivity like accepting angle of launch,speed etc. I am wanting to add input boxes with increase decrease arrows but don't know how to go about it. Thanks for the help.
推荐答案
也许您可以尝试 PGU (Phil的pyGame实用程序).
Maybe you can try PGU (Phil's pyGame Utilities).
除其他工具外,它还具有用于创建GUI的库.
此PGU演示可能显示与您正在寻找的相似的东西:
In addition to other tools, it has a library for creating GUIs.
This PGU demo shows probably something similar to that you are looking for:
这篇关于在pygame物理模拟中添加wxPython GUI元素的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!