Pygame 错误:显示表面退出:为什么? [英] Pygame error: display surface quit: Why?

查看:25
本文介绍了Pygame 错误:显示表面退出:为什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

谁能告诉我为什么我的应用程序退出:

Can anyone tell me why my app quits with:

pygame 错误:显示 Surface 退出.

pygame error: display Surface quit.

推荐答案

我遇到了类似的问题,发现 Surface 对象不喜欢被深度复制.当我在这样的对象上使用 copy.deepcopy() 然后访问副本时,我收到了那个奇怪的错误消息(没有调用 pygame.quit()).也许您也遇到过类似的行为?

I had similar problem and discovered that Surface objects don't like to be deepcopied. When I used copy.deepcopy() on such object and then accessed the copy, I got that strange error message (without calling pygame.quit()). Maybe you experience similar behavior?

这篇关于Pygame 错误:显示表面退出:为什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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