Commit 1b96b2bf by BellCodeEditor

save project

parent a7d79f90
Showing with 12 additions and 1 deletions
bg.png

22.5 KB

......@@ -57,6 +57,10 @@ while True:
else:
play_button = play_img
pygame.mixer.music.pause()
s=pygame.mixer.sound(path+'\\'+music_list(num))
at=s.get_length()
v=int(at)
if x > 420 and x < 520 and y > 350 and y < 450:
pygame.mixer.music.stop()
play_button = stop_img
......@@ -64,6 +68,10 @@ while True:
click += 2
else:
click += 1
s=pygame.mixer.sound(path+'\\'+music_list(num))
at=s.get_length()
v=int(at)
if x > 120 and x < 220 and y > 350 and y < 450:
num -= 1
......@@ -76,6 +84,9 @@ while True:
click += 2
else:
click += 1
s=pygame.mixer.sound(path+'\\'+music_list(num))
at=s.get_length()
v=int(at)
if pygame.mixer.music.get_busy() == False:
num += 1
......@@ -92,7 +103,7 @@ while True:
pos = (newRect[0], newRect[1])
if play_button==stop_img:
angle += 1
time=pygame.image..get_pos()
time=pygame.mixer.music.get_pos()
time=int(time/1000)
x=time//60
b=time%60
......
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