From b3fa2f210b17a91126d2f18a00123688ee8722e4 Mon Sep 17 00:00:00 2001
From: BellCodeEditor <bellcode_dev@bell.ai>
Date: Sun, 6 Mar 2022 16:12:06 +0800
Subject: [PATCH] save project

---
 my_music.py |  9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/my_music.py b/my_music.py
index 8636900..1962e4c 100644
--- a/my_music.py
+++ b/my_music.py
@@ -70,7 +70,14 @@ while True:
                     pygame.mixer.music.play()
                     click=0
                     play_button=stop_img
-
+                if x>400 and x<520 and y>350 and y<400:
+                    num-=1
+                    if num<0:
+                        num=len(music_list)-1
+                    pygame.mixer.music.load(path+"\\"+music_list[num])    
+                    pygame.mixer.music.play()
+                    click=0
+                    play_button=stop_img
 
 
     if pygame.mixer.music.get_busy() == False:
--
libgit2 0.25.0