From 28b71ddac6c895337e776b3e6e3e15f65e4753bb Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Sat, 15 Jan 2022 11:08:03 +0800 Subject: [PATCH] save project --- my_music.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/my_music.py b/my_music.py index 09ff7ec..df4f3e4 100644 --- a/my_music.py +++ b/my_music.py @@ -41,14 +41,14 @@ while True: if event.type == locals.MOUSEBUTTONDOWN: if event.button==1: x,y=event.pos - ` if x>270 and x<370 and y>330 and y<430# 次数增加 - click += 1 - if click % 2 == 0: - play_button = stop_img - pygame.mixer.music.unpause() - else: - play_button = play_img - pygame.mixer.music.pause() + if x>270 and x<370 and y>330 and y<430:# 次数增加 + click += 1 + if click % 2 == 0: + play_button = stop_img + pygame.mixer.music.unpause() + else: + play_button = play_img + pygame.mixer.music.pause() if pygame.mixer.music.get_busy() == False: pygame.mixer.music.play() -- libgit2 0.25.0