Commit fdb83b5d by BellCodeEditor

save project

parent 8aa71058
Showing with 14 additions and 1 deletions
...@@ -11,7 +11,7 @@ play_img = pygame.image.load('play.png') # 播放按钮 ...@@ -11,7 +11,7 @@ play_img = pygame.image.load('play.png') # 播放按钮
stop_img = pygame.image.load('stop.png') # 暂停按钮 stop_img = pygame.image.load('stop.png') # 暂停按钮
last_img = pygame.image.load('last.png') # 上一曲按钮 last_img = pygame.image.load('last.png') # 上一曲按钮
next_img = pygame.image.load('next.png') # 下一曲按钮 next_img = pygame.image.load('next.png') # 下一曲按钮
logo_img = pygame.image.load('logo.png') # 下一曲按钮 logo_img = pygame.image.load('logo.png'i) # 下一曲按钮
music_list = [] music_list = []
path = "C:\\Users\\Administrator\\Desktop\\test" path = "C:\\Users\\Administrator\\Desktop\\test"
...@@ -60,6 +60,10 @@ while True: ...@@ -60,6 +60,10 @@ while True:
if click % 2 == 0: if click % 2 == 0:
play_button = stop_img play_button = stop_img
pygame.mixer.music.unpause() pygame.mixer.music.unpause()
music1=pygame.mixer.Sound(path + "\\" + music_list[num]))
music_length=music.length.Sound.get_length()
if piay_S<10:
play_s="0"+str(play_s)
else: else:
...@@ -76,6 +80,10 @@ while True: ...@@ -76,6 +80,10 @@ while True:
click += 2 click += 2
else: else:
click += 1 click += 1
music1=pygame.mixer.Sound(path + "\\" + music_list[num]))
music_length=music.length.Sound.get_length()
if play_s<10:
play_s="0"+str(play_s)
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
...@@ -88,6 +96,11 @@ while True: ...@@ -88,6 +96,11 @@ while True:
click += 2 click += 2
else: else:
click += 1 click += 1
music1=pygame.mixer.Sound(path + "\\" + music_list[num]))
music_length=music.length.Sound.get_length()
if play_s<10:
play_s="0"+str(play_s)
if pygame.mixer.music.get_busy() == False: if pygame.mixer.music.get_busy() == False:
num += 1 num += 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