wxPython &pyGame 分配 [英] wxPython & pyGame Assignment

查看:65
本文介绍了wxPython &pyGame 分配的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

实际上,我正在处理的任务中需要您的帮助和建议.首先,我的任务是编写一个运行 langton 蚂蚁模拟的程序.为此,我设法获取了源代码(来自snippets.dzone.com/posts/show/5143)并根据我的要求对其进行了相应的编辑.这是在 pygame 模块扩展中完成并运行的.此外,我的任务需要一个 GUI 界面,以便用户在运行 langton 的 ant 程序的情况下有效地运行和浏览屏幕.我在名为 BOA 构造函数的 IDE 的帮助下使用 wxPython 创建框架、按钮、文本框等.基本上,界面中需要的所有东西.

I'm actually in need of your help and advice here on my assignment that I am working on. First of all, I was task to do a program that runs langton's ant simulation. For that, I've managed to get the source code (from snippets.dzone.com/posts/show/5143) and edited it accordingly to my requirements. This was done and ran in pygame module extension. In addition, my task requires a GUI to interface for users to run and navigate through the screens effectively with the langton's ant program running. I used wxPython with the help of an IDE called BOA constructor to create the frames, buttons, textboxes, etc. Basically, all the stuff needed in the interfaces.

但是,我遇到了下面列出的一些问题:

However, I've ran into some problems listed below:

  • 发现将 pyGame 与 wxPython 集成的问题.

  • Found problem integrating pyGame with wxPython.

在此说明中,我在互联网上搜索了我从以下网站找到的答案和教程:wiki.wxpython.org/IntegratingPyGame &aspn.activestate.com/ASPN/Mail/Message/wxpython-users/3178042.我从网站上了解到,将 pyGame 与 wxPython 集成将是一项艰巨的任务,因为它会导致常见问题,例如无法将其他控件放入框架中,因为 pyGame 应用程序将覆盖整个面板.我真的希望你能澄清我对此的疑虑,并就我应该走的路向我提出建议.因此,我提出以下问题:

On this note, I've research the internet for answers and tutorials where I found out from website: wiki.wxpython.org/IntegratingPyGame & aspn.activestate.com/ASPN/Mail/Message/wxpython-users/3178042. I understand from the sites that integrating pyGame with wxPython will be a difficult task where it has caused common problems like the inability to placing other controls into the frames as the pyGame application will cover the entire panel. I really hope that you can clarify my doubts on this and advise me on the path that I should take from here. Therefore, I ask the following questions:

pyGame 与 wxPython 集成是否可行?

Is it feasible to integrate pyGame with wxPython?

真的需要你们对此发表意见.

Really need you guys opinion on this.

推荐答案

这是给你的页面:pygame界面讨论

总结一下:不要将任何标准的 GUI 东西与 pygame 一起使用.它可能有用,但它肯定会惹恼你.同样在此页面上,讨论了可直接在 pygame 中使用的各种不同的 GUI 库.听起来您只需要一些标准小部件,因此您应该立即启动并运行其中一个.

To sum it up: Don't use any standard GUI stuff together with pygame. It might work, but it's most definitely gonna annoy you big time. Also on this page, there's a discussion of various different GUI libraries available which work directly in pygame. It sounds like you only need some standard widgets, so you should be up and running in no time with one of these.

这篇关于wxPython &pyGame 分配的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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