1

我正在制作一个 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()
4

0 回答 0