Commit 45ccd00d by BellCodeEditor

auto save

parent a756d6f0
Showing with 2 additions and 1 deletions
......@@ -77,7 +77,7 @@ while True:
if x > 120 and x < 220 and y > 350 and y < 400:
num -= 1
if num < 0:
num = len(filelist) - 1
num = len(music_list) - 1
pygame.mixer.music.load(path +"\\"+ music_list[num])
pygame.mixer.music.play()
play_button = stop_img
......@@ -100,6 +100,7 @@ while True:
music1 = pygame.mixer.Sound(path +"\\"+ music_list[num])
#获取音乐长度,以秒为单位
music_length = int(music1.get_length())
#歌曲播放进度时间
play_time = pygame.mixer.music.get_pos()
#展示秒数的换算
......
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