GUI程序出错

时间:2015-11-22 06:14:11

标签: python python-2.7 pygame livewires

我正在制作一个GUI程序,它会在屏幕的右上角显示一个文本。但是当我运行程序时,屏幕在1-2秒后关闭而不显示文本。

from livewires import games,color

my_screen = games.Screen(screen_width = 640,screen_height = 480,fps = 50)
wall = games.load_image("wall.bmp",transparent = False)
my_screen.set_background(wall)

games.Text(screen = my_screen ,x = 500, y = 30, text = "Score = 19874", color = color.black, size = 50)

my_screen.mainloop()

0 个答案:

没有答案
相关问题