Commit 525e3442 by BellCodeEditor

save project

parent b73fe70e
Showing with 1 additions and 5 deletions
...@@ -14,7 +14,7 @@ next_img = pygame.image.load('next.png') # 下一曲按钮 ...@@ -14,7 +14,7 @@ next_img = pygame.image.load('next.png') # 下一曲按钮
logo_img = pygame.image.load('logo.png') # 下一曲按钮 logo_img = pygame.image.load('logo.png') # 下一曲按钮
font=pygame.font.SysFont("neuropol.ttf",200) font=pygame.font.SysFont("neuropol.ttf",200)
music_list = [] music_list = []
path = "C:\Users\lenovo" path = "G:\\VipSongsDownload"
filelist = os.listdir(path) filelist = os.listdir(path)
num = -1 num = -1
for i in filelist: for i in filelist:
...@@ -89,10 +89,6 @@ while True: ...@@ -89,10 +89,6 @@ while True:
if play_button==stop_img: if play_button==stop_img:
angle += 1 angle += 1
play_time=pygame.mixer.music.get_pos()//1000 play_time=pygame.mixer.music.get_pos()//1000
music1=pygame.mixer.Sound(path+"\\"+music_list[nom])
music_time=pygame.mixer.music1.get_poss()//1000
time_m=play_time//60 time_m=play_time//60
time_s=play_time%60 time_s=play_time%60
times = str(time_m)+":"+str(time_s) times = str(time_m)+":"+str(time_s)
......
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