Commit 83b9a65f by BellCodeEditor

save project

parent 3b0d8224
Showing with 10 additions and 0 deletions
...@@ -65,6 +65,9 @@ while True: ...@@ -65,6 +65,9 @@ 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()
click=0 click=0
music1=pygame.mixer.Sound(path+'\\'+music_list[num])
music_length=music1.get_length()
music_length=int(music_length)
if x>420 and x<520 and y>350 and y<400: if x>420 and x<520 and y>350 and y<400:
num += 1 num += 1
if num>len(music_list)-1: if num>len(music_list)-1:
...@@ -73,6 +76,10 @@ while True: ...@@ -73,6 +76,10 @@ 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()
click=0 click=0
music1=pygame.mixer.Sound(path+'\\'+music_list[num])
music_length=music1.get_length()
music_length=int(music_length)
if pygame.mixer.music.get_busy() == False: if pygame.mixer.music.get_busy() == False:
num+=1 num+=1
if num > len(filelist)-1: if num > len(filelist)-1:
...@@ -83,6 +90,9 @@ while True: ...@@ -83,6 +90,9 @@ while True:
play_time=int(play_time/1000) play_time=int(play_time/1000)
play_m=play_time//60 play_m=play_time//60
play_s=play_time%60 play_s=play_time%60
if play_s<10:
play_s='0'+str(play_s)
info=str(play_m)+':'+str(play_s) info=str(play_m)+':'+str(play_s)
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))
......
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