Commit 7bd7d397 by BellCodeEditor

save project

parent 1125cf6f
Showing with 11 additions and 3 deletions
......@@ -14,7 +14,7 @@ logo_img = pygame.image.load('logo.png') # 下一曲按钮
# 载入音乐
file_list = []
path = "C:\\Users\\Administrator\\Desktop\\test"
path = "C:\\Users\\Administrator\\Desktop\\tst"
filelist = os.listdir(path)
for i in filelist:
if i[-4:] == ".ogg" or i[-4:] == ".wav":
......@@ -58,8 +58,16 @@ while True:
pygame.mixer.music.unpause()
else:
play_button = play_img
pygame.mixer.music.pause()
pygame.mixer.music.pause()
if x > 120 and x < 350 and y > 350 and y < 400:
click -= 1
if click % 2 == 0:
play_button = stop_img
pygame.mixer.music.unpause()
else:
play_button = play_img
pygame.mixer.music.pause()
play_button = stop_img
if pygame.mixer.music.get_busy() == False:
unm += 1
if unm > len(filelist)-1:
......
File deleted
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