Commit bda97e88 by BellCodeEditor

save project

parent 4620c84e
Showing with 6 additions and 2 deletions
...@@ -86,10 +86,11 @@ while True: ...@@ -86,10 +86,11 @@ while True:
pygame.mixer.music.play() pygame.mixer.music.play()
pt=pygame.mixer_music.get_pos() pt=pygame.mixer_music.get_pos()
print(pt)
pt=int(pt/1000) pt=int(pt/1000)
m=pt//60 m=pt//60
s=pt%60 s=pt%60
i=str(m)+":"+str(s)
r=pygame.transform.rotate(logo_img,j) r=pygame.transform.rotate(logo_img,j)
if play_button == stop_img: if play_button == stop_img:
...@@ -100,6 +101,8 @@ while True: ...@@ -100,6 +101,8 @@ while True:
screen.blit(play_button, (270, 330)) screen.blit(play_button, (270, 330))
screen.blit(r, p) screen.blit(r, p)
screen.blit(last_img, (120, 350)) screen.blit(last_img, (120, 350))
screen.blit(next_img, (420, 350)) screen.blit(next_img, (420, 350))
a=basic_font.render(i,True,(255,255,255))
screen.blit(a,(120,440))
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