Commit c8d8133c by BellCodeEditor

save project

parent a122cda4
Showing with 12 additions and 1 deletions
...@@ -26,6 +26,15 @@ click = 0 ...@@ -26,6 +26,15 @@ click = 0
play_button = stop_img play_button = stop_img
angle=0 angle=0
while True: while True:
play_time=pygame.mixer.music.get_pos()
play_time=int(play_time//1000)
play_m=play_time//60
play_s=play_time%60
playtime=str(play_m)+':'+str(play_s)
myt=pygame.font.Font('neuropol.ttf',20)
text=myt.render(playtime,True,(0,0,0))
fff=pygame.time.Clock() fff=pygame.time.Clock()
fff.tick(60) fff.tick(60)
for event in pygame.event.get(): for event in pygame.event.get():
...@@ -99,6 +108,7 @@ while True: ...@@ -99,6 +108,7 @@ while True:
screen.blit(play_button, (270, 330)) # 暂停按钮 screen.blit(play_button, (270, 330)) # 暂停按钮
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(text,(150,400)) # 下一曲
# 刷新画面 # 刷新画面
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