From 1b1430db796bd193c7ee85533e37422be01dcee4 Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Wed, 19 Jun 2024 18:09:46 +0800 Subject: [PATCH] save project --- my_music.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/my_music.py b/my_music.py index 1b2eac9..a0ee7ec 100644 --- a/my_music.py +++ b/my_music.py @@ -37,12 +37,10 @@ while True: volume = 0 pygame.mixer.music.set_volume(volume) - # 按下鼠标 if event.type == locals.MOUSEBUTTONDOWN: if event.button == 1: x,y = event.pos if x > 270 and x <370 and y > 350 and y < 450: - # 次数增加 click += 1 if click % 2 == 0: play_button = stop_img @@ -61,4 +59,4 @@ while True: screen.blit(last_img, (120, 350)) # 上一曲 screen.blit(next_img, (420, 350)) # 下一曲 # 刷新画面 - pygame.display.update() + pygame.display.update() \ No newline at end of file -- libgit2 0.25.0