Commit 015c7803 by BellCodeEditor

save project

parent 8dffa229
Showing with 6 additions and 3 deletions
...@@ -62,7 +62,7 @@ while True: ...@@ -62,7 +62,7 @@ while True:
pygame.mixer.music.load(path + "\\" + music_list[num]) pygame.mixer.music.load(path + "\\" + music_list[num])
pygame.mixer.music.play() pygame.mixer.music.play()
op = pygame.mixer.Sound(path + "\\" + music_list[num]) op = pygame.mixer.Sound(path + "\\" + music_list[num])
po = op.get_lenght() po = op.get_length()
po = int(po) po = int(po)
play_button = stop_img play_button = stop_img
if click % 2 == 0: if click % 2 == 0:
...@@ -77,7 +77,7 @@ while True: ...@@ -77,7 +77,7 @@ while True:
pygame.mixer.music.load(path + "\\" + music_list[num]) pygame.mixer.music.load(path + "\\" + music_list[num])
pygame.mixer.music.play() pygame.mixer.music.play()
op = pygame.mixer.Sound(path + "\\" + music_list[num]) op = pygame.mixer.Sound(path + "\\" + music_list[num])
po = op.get_lenght() po = op.get_length()
po = int(po) po = int(po)
play_button = stop_img play_button = stop_img
if click % 2 == 0: if click % 2 == 0:
...@@ -99,6 +99,8 @@ while True: ...@@ -99,6 +99,8 @@ while True:
tt = int(tt/1000) tt = int(tt/1000)
cv = tt//60 cv = tt//60
vc = tt%60 vc = tt%60
if vc <10:
vc="0"+str(vc)
hhhhhh = str(cv) + ":" + str(vc) hhhhhh = str(cv) + ":" + str(vc)
rt = kkk.render(hhhhhh,True,(255,255,255)) rt = kkk.render(hhhhhh,True,(255,255,255))
...@@ -121,7 +123,7 @@ while True: ...@@ -121,7 +123,7 @@ while True:
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(rt,(120,440)) screen.blit(rt,(120,440))
screen.blit(kj,(170,440)) screen.blit(kj,(190,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