Commit f2e46912 by BellCodeEditor

save project

parent cfe04c8c
Showing with 8 additions and 1 deletions
......@@ -95,11 +95,18 @@ while True:
screen.blit(nl, (sb[0],sb[1])) # 中间logo图
screen.blit(last_img, (120, 350)) # 上一曲
screen.blit(next_img, (420, 350)) # 下一曲
ml=pygame.mixer.Sound(path+"\\"+music_list[num])
ml=int(ml.get_length())
ms=ml%60
mm=ml//60
pt=pygame.mixer.music.get_pos()
pt=int(pt/1000)
m=pt//60
sec=pt%60
tm=str(m)+":"+str(sec)
if sec<10:
tm=str(m)+":0"+str(sec)+"|"+str(mm)+":"+str(ms)
else:
tm=str(m)+":"+str(sec)+"|"+str(mm)+":"+str(ms)
print(tm)
# 刷新画面
dg+=ag
......
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