Commit 884d6bbf by BellCodeEditor

save project

parent 9639d47f
Showing with 9 additions and 12 deletions
...@@ -85,14 +85,14 @@ while True: ...@@ -85,14 +85,14 @@ while True:
num = 0 num = 0
pygame.mixer.music.load(path + "\\" + music_list[num]) pygame.mixer.music.load(path + "\\" + music_list[num])
pygame.mixer.music.play() pygame.mixer.music.play()
sj=pygame.mixer.music.get_pos() play_time=pygame.mixer.music.get_pos()
fz=int(sj/1000) play_time=int(play_time/1000)
fz_m=fz//60 play_m=play_time//60
fz_s=fz%60 play_s=play_time%60
if fz_s<10: if play_s<10:
fz_s='0'+str(fz_s) play_s='0'+str(play_s)
info=str(fz_m)+':'+str(fz_s) info=str(play_m)+':'+str(play_s)
pp=word.render(info,True,(0,0,0)) info=word.render(info,True,(0,0,0))
new_logo=pygame.transform.rotate(logo_img,angle) new_logo=pygame.transform.rotate(logo_img,angle)
newRect=new_logo.get_rect(center=(320,200)) newRect=new_logo.get_rect(center=(320,200))
...@@ -106,8 +106,6 @@ while True: ...@@ -106,8 +106,6 @@ while True:
screen.blit(new_logo, pos) # 中间logo图 screen.blit(new_logo, pos) # 中间logo图
screen.blit(last_img, (120, 350)) # 上一曲 screen.blit(last_img, (120, 350)) # 上一曲
screen.blit(next_img, (420, 350)) # 下一曲 screen.blit(next_img, (420, 350)) # 下一曲
screen.blit(pp,(120,450)) screen.blit(info,(120,450))
# 刷新画面 # 刷新画面
pygame.display.update() 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