Mac和Windows的Python兼容GUI,易于安装并与pygame一起使用吗? [英] Mac and Windows compatible GUI for Python, which is easy to install and works with pygame?

查看:181
本文介绍了Mac和Windows的Python兼容GUI,易于安装并与pygame一起使用吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我制作了一个程序,可以在图像中发现并测量酵母菌落的半径.它使用pygame进行像素访问和图像的图形显示.

I have made a program that finds and measures the radius of yeast colonies in images. It uses pygame for pixel access and graphical display of the images.

下一步是使其用户友好",以便我大学生物实验室的非程序员可以使用它. Pygame缺少我需要的滚动条,文本字段,打开文件"对话框等.我听说尝试将pygame和Tkinter混合使用是一场噩梦.我该怎么用?

The next step is to make it "user friendly" so that the non-programmers in my university bio lab can use it. Pygame lacks scroll bars, text fields, "open file" dialogues, etc., which I will need. I have heard that it's a nightmare trying to mix pygame and Tkinter. What can I use?

另一个要求是,我希望在Windows和Mac上易于设置Python和所有必需的模块,这就是为什么我不使用PIL之类的东西的原因,而必须在Mac上从源代码进行设置. pygame似乎很容易在Mac上设置,并且还有Windows .exe.我希望人们能够在没有我帮助的情况下尽可能简单地在自己的笔记本电脑上下载并运行该程序.

An additional requirement is that I want the set up of Python and all necessary modules to be easy to do on Windows and Mac, which is why I'm not using something like PIL, which must be set up from source on Mac. pygame seems to be easy to set up on Mac, and there's a windows .exe as well. I want people to be able to download and run this program as simply as possible on their own laptops without my help.

如果没有简便的方法可以使pygame与GUI游戏一起运行,那么有人对如何导出我的pygame图像,像素列表或任何要显示在GUI上的东西有任何建议吗?我可以在不打开窗口的情况下以某种方式制作和操纵pygame图像吗?或者是否有允许像素访问的GUI(例如set_at()和get_at()吗?)

If there is no easy way to make some kind of GUI module run alongside pygame, does anyone have any suggestions as to how to export my pygame Image, or list of pixels, or whatever, to be shown on a GUI? Can I somehow make and manipulate a pygame Image without opening a window? Or are there GUIs which allow pixel access (i.e., set_at() and get_at() ?)

非常感谢您的建议!我真的很沮丧,并且对使该程序完美运行感到沮丧-除了我之外没有人可以使用它.

I greatly appreciate your suggestions and advice! I'm really stumped, and frustrated that I've gotten this program to work perfectly--except for the fact that no one but me can use it.

推荐答案

不要害怕! 其他人也遇到了相同的问题并得到了帮助.

Fear not! Other people have had the same problem and have been helped.

此外,这里还有一些有用的链接.这些是PyGame GooeyPy OcempGUI 和一个整个批次.

Also, here are few useful links. These are GUI toolkits for PyGame GooeyPy, Mike's Simple GUI, OcempGUI and a whole lot more.

PGU 我认为这是大多数游戏开发人员使用的最受欢迎的库之一,似乎维护得很好.

PGU I think is one of the popular libraries that most game developers use and it seems to be reasonably well maintained.

这篇关于Mac和Windows的Python兼容GUI,易于安装并与pygame一起使用吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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