diff --git a/my_music.py b/my_music.py index e0ecb0c..585164e 100644 --- a/my_music.py +++ b/my_music.py @@ -14,7 +14,8 @@ logo_img = pygame.image.load('logo.png') # 中间logo while True: for event in pygame.event.get(): - ???? + if event.type==locals.QUIT: + exit() # 绘制画面 screen.blit(bg_img, (0, 0)) # 填充背景 @@ -23,4 +24,4 @@ while True: screen.blit(last_img, (120, 350)) # 上一曲 screen.blit(next_img, (420, 350)) # 下一曲 # 刷新画面 - ??? + pygame.display.update() \ No newline at end of file