请教大神,在Qpython下可以运行起来pygame吗?
qpython吧
全部回复
仅看楼主
level 1
mali105358 楼主
最近在学习Qpython下的pygame。
在运行到 “pygame.display.set_mode(SCREEN_SIZE)”,总是提示“Out of Memory”。
请大神指教问题出在哪里。
源码如下:
#-*-coding:utf8;-*-
#qpy:kivy
import os
import pygame
from pygame.locals import *
SCREEN_SIZE=(480,800)
def main():
# Pygame stuff
pygame.init()
screen=pygame.display.set_mode(SCREEN_SIZE)
pygame.display.set_caption("Hello,world!")
while True:
for event in pygame.event.get():
if event.type == pygame.QUIT:
pygame.quit()
sys.exit()
return
screen.fill((255,0,0))
pygame.display.flip()
if __name__ == "__main__":
main()
2016年04月26日 09点04分 1
level 1
超出内存了吧
2016年05月23日 11点05分 2
level 1
怎么安装pygame
2016年09月16日 06点09分 3
1