Commit f60ebd20 by BellCodeEditor

save project

parent 58ab7409
Showing with 15 additions and 1 deletions
......@@ -55,12 +55,16 @@ while True:
else:
play_button = play_img
pygame.mixer.music.pause()
if x > 420 and x < 520 and y > 350 and y < 400:
num += 1
if num > len(music_list) - 1:
num = 0
pygame.mixer.music.load(path +"\\"+ music_list[num])
pygame.mixer.music.play()
music = pygame.mixer.Sound(path + "\\" + music_list[num])
music_length = musicl.get_length
music_length = int (music_length)
play_button = stop_img
if click % 2 == 0:
click += 2
......@@ -73,6 +77,9 @@ while True:
num = len(filelist) - 1
pygame.mixer.music.load(path +"\\"+ music_list[num])
pygame.mixer.music.play()
music = pygame.mixer.Sound(path + "\\" + music_list[num])
music_length = musicl.get_length
music_length = int (music_length)
play_button = stop_img
if click % 2 == 0:
click += 2
......@@ -85,7 +92,9 @@ while True:
num = 0
pygame.mixer.music.load(path+"\\"+music_list[num])
pygame.mixer.music.play()
music = pygame.mixer.Sound(path + "\\" + music_list[num])
music_length = musicl.get_length
music_length = int (music_length)
new_logo = pygame.transform.rotate(logo_img, angle)
nemRect = new_logo.get_rect(center = (320, 200))
pos = (newRect[0],newRect[1])
......@@ -98,6 +107,11 @@ while True:
play_m = play_time // 60
play_s = play_time % 60
info = str(play_m)
music_m =music_length// 60
music_s =music_length% 60
if music_s < 10:
music_s = "0"+str(music_s)
info2 = str(music_m)+":"+str(music_s)
......
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