pyGTK应用程序中的pyGame [英] pyGame within a pyGTK application

查看:112
本文介绍了pyGTK应用程序中的pyGame的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在PyGTK应用程序中使用PyGame(SDL)的最佳方法是什么?



我正在寻找一种方法,使我可以在GTK窗口,同时可以管理GTK和SDL事件。

解决方案

我从未尝试过自己,但是听到很多关于其他尝试过的人的信息,这不是你想要下去的道路。

另外一种方法是将gui放入pygame中。有很多专门为pygame构建的gui工具包,您可以使用。他们中的大多数都未完成,但有两个大的,积极维护的: PGU OcempGUI 。 pygame网站上的完整列表此处


What is the best way to use PyGame (SDL) within a PyGTK application?

I'm searching for a method that allows me to have a drawing area in the GTK window and at the same time being able to manage both GTK and SDL events.

解决方案

I've never attempted it myself, but hearing plenty about other people who've tried, it's not a road you want to go down.

There is the alternative of putting the gui in pygame itself. There are plenty of gui toolkits built specifically for pygame that you could use. Most of them are rather unfinished, but there are 2 big, actively maintained ones: PGU and OcempGUI. The full list on the pygame site is here.

这篇关于pyGTK应用程序中的pyGame的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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