Commit 07c9eecb by BellCodeEditor

save project

parent 5e54a917
Showing with 6 additions and 8 deletions
......@@ -89,20 +89,18 @@ while True:
pygame.mixer.music.play()
# 绘制画面
play_time=pygame.mixer.music.get_pos()
mtimes=int(play_time/1000)
mtimes_m=mtimes//60
mtimes_s=mtimes%60
if mtimes_s<10:
mtimes_s='0'+str(mtimes_s)
display_time=str(mtimes_m)+':'+str(mtimes_s)
sj = pygame.mixer.music.get_pos()
sj = int(sj/1000)
sj_m = sj//60
sj_s = sj%60
info = str(sj_m) + ":" + str(sj_s)
screen.blit(bg_img, (0, 0)) # 填充背景
screen.blit(play_button, (270, 330))
screen.blit(logo_play,logo_pos) # 暂停按钮
screen.blit(logo_play,logo_pos) # 中间logo图
screen.blit(last_img, (120, 350)) # 上一曲
screen.blit(next_img, (420, 350))
time_content=display_fonts.render(display_time,True,(255,255,255))
time_content=display_fonts.render(info,True,(255,255,255))
screen.blit(time_content,(120,450))
# music_content=display_font.render('/'+dis_m) # 下一曲
# 刷新画面
......
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