Commit 27d6d856 by BellCodeEditor

save project

parent 09b26966
Showing with 4 additions and 2 deletions
...@@ -68,7 +68,9 @@ while True: ...@@ -68,7 +68,9 @@ while True:
click += 2 click += 2
else: else:
click += 1 click += 1
music1 = pygame.mixer.Sound(path + "\\" + music_list[num]))
music_lenght = music1.get_lenght()
music_lenght = int (music_lenght)
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 num -= 1
if num < 0: if num < 0:
...@@ -92,7 +94,7 @@ while True: ...@@ -92,7 +94,7 @@ while True:
play_time = int(playtime/1000) play_time = int(playtime/1000)
play_m = py_time//60 play_m = py_time//60
play_s = py_time % 60 play_s = py_time%60
info = str(play_m) + ":" + str(play_s) info = str(play_m) + ":" + str(play_s)
new_logo = pygame.transfrom.rotate(logo_img,angle) new_logo = pygame.transfrom.rotate(logo_img,angle)
......
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