Commit dbfbb05d by BellCodeEditor

save project

parent 902c8e54
Showing with 10 additions and 1 deletions
......@@ -78,7 +78,13 @@ while True:
click += 2
else:
click += 1
miaoshu = pygame.mixer.music.get_pos()
abc = int(miaoshu/1000)
miao = abc%60
fen = abc//60
wenziwenzi = str(fen)+":"+str(miao)
wenzi = pygame.font.Font('neuropol.ttf',20)
new_wenzi = wenzi.render(wenziwenzi,True,(255,255,255))
if pygame.mixer.music.get_busy() == False:
num += 1
if num > len(music_list)-1:
......@@ -98,5 +104,7 @@ while True:
screen.blit(new_logo, zuobiao) # 中间logo图
screen.blit(last_img, (120, 350)) # 上一曲
screen.blit(next_img, (420, 350)) # 下一曲
screen.blit(new_wenzi,(120,450))
# 刷新画面
pygame.display.update()
\ No newline at end of file
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