Mac 和 Windows 兼容的 Python GUI,易于安装并可与 pygame 一起使用?

发布于 2024-11-02 07:19:30 字数 589 浏览 8 评论 0原文

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

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

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

如果没有简单的方法使某种 GUI 模块与 pygame 一起运行,是否有人对如何导出我的 pygame 图像或像素列表或其他内容有任何建议,以便在 GUI 上显示?我可以在不打开窗口的情况下以某种方式制作和操作 pygame 图像吗?或者是否有允许像素访问的 GUI(即 set_at() 和 get_at() ?)

我非常感谢您的建议和建议!我真的被难住了,而且很沮丧,我让这个程序完美地工作了——除了我以外没有人可以使用它这一事实。

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.

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?

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.

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

不知所踪 2024-11-09 07:19:31

不要害怕! 其他人也遇到了同样的问题< /a> 并得到了帮助。

另外,这里有一些有用的链接。这些是 PyGame 的 GUI 工具包 GooeyPyMike 的简单 GUI, OcempGUI还有更多

PGU 我认为是大多数游戏开发人员使用的流行库之一,它似乎是维护得相当好。

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

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

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文