Commit 2d5c1b02 by BellCodeEditor

save project

parent 9724876f
Showing with 5 additions and 2 deletions
......@@ -104,11 +104,13 @@ while True:
play_time=play_time//1000
play_m=play_time//60
play_s=play_time%60
if play_s<10:
play_s="0"+str(play_s)
play_q=str(play_m)+":"+str(play_s)
music_lengthm=music_length//60
music_lengths=music_length%60
music_lengthq="/"+str(music_lengthm)+":"+str(music_lengths)
music_lengthq="/"+"0"+str(music_lengthm)+":"+str(music_lengths)
font_content=font.render(play_q,True,(250,250,250))
music_content=font.render(music_lengthq,True,(250,250,250))
......@@ -125,7 +127,7 @@ while True:
screen.blit(new_logo, pos) # 中间logo图
screen.blit(last_img, (120, 350)) # 上一曲
screen.blit(next_img, (420, 350)) # 下一曲
screen.blit(font_content, (120, 440))
screen.blit(font_content, (110, 440))
screen.blit(music_content, (170, 440))
# 刷新画面
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