wxPython或pygame的简单纸牌游戏? [英] wxPython or pygame for a simple card game?

查看:171
本文介绍了wxPython或pygame的简单纸牌游戏?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在玩一些用Python编写的简单纸牌游戏,这很有趣,我想在游戏中添加图形用户界面(GUI).您会建议使用哪个库来编写简单的纸牌游戏的GUI?

I have been playing around with writing some simple card games in Python for fun and I would like to add a graphical user interface (GUI) to the games. Which library would you recommend for writing the GUI for a simple card game?

推荐答案

如果只需要一个GUI,则wxPython应该可以解决问题.

If all you want is a GUI, wxPython should do the trick.

如果您想添加声音,控制器输入并将其超越简单的纸牌游戏,那么您可能要使用pygame.

If you're looking to add sound, controller input, and take it beyond a simple card game, then you may want to use pygame.

这篇关于wxPython或pygame的简单纸牌游戏?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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