Commit 130b0862 by Administrator

Update my_music.py

parent 46cde6f1
Showing with 2 additions and 2 deletions
......@@ -53,7 +53,7 @@ while True:
else:
play_button = play_img
pygame.mixer.music.pause()
if x > 420 and x < 520 and y > 350 and y < 400:
if x > 420 and x < 520 and y > 350 and y < 400: # 下一曲
num += 1
if num > len(music_list) - 1:
num = 0
......@@ -65,7 +65,7 @@ while True:
else:
click += 1
if x > 120 and x < 220 and y > 350 and y < 400:
if x > 120 and x < 220 and y > 350 and y < 400: # 上一曲
num -= 1
if num < 0:
num = len(music_list) - 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment