Commit 88ff062b by BellCodeEditor

save project

parent 8eb72659
Showing with 7 additions and 1 deletions
...@@ -12,6 +12,7 @@ stop_img = pygame.image.load('stop.png') # 暂停按钮 ...@@ -12,6 +12,7 @@ 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') # 下一曲按钮
we=pygame.font.Font(neuropol.ttf:)
qaz=pygame.time.Clock() qaz=pygame.time.Clock()
music_list = [] music_list = []
path = "C:\\Users\\Administrator\\Desktop\\etr" path = "C:\\Users\\Administrator\\Desktop\\etr"
...@@ -76,7 +77,12 @@ while True: ...@@ -76,7 +77,12 @@ while True:
click += 2 click += 2
else: else:
click += 1 click += 1
play_time=pygame.mixer.music.get_pos()
play_time=int(play_time/1000)
play_m=play_time//60
play_s=play_time%60
play_ms=str(play_m)+str(play_s)
ujm=we.render(play_ms,True,(0,0,0))
if pygame.mixer.music.get_busy() == False: if pygame.mixer.music.get_busy() == False:
num += 1 num += 1
if num > len(music_list)-1: if num > len(music_list)-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