Commit b3c670ff by BellCodeEditor

auto save

parent a52e01a6
Showing with 4 additions and 1 deletions
...@@ -68,6 +68,7 @@ while True: ...@@ -68,6 +68,7 @@ while True:
sound_length=sound1.get_length() sound_length=sound1.get_length()
sound_length=int(sound_length) sound_length=int(sound_length)
if x > 120 and x < 220 and y > 350 and y < 400: if x > 120 and x < 220 and y > 350 and y < 400:
num -= 1 num -= 1
if num < 0: if num < 0:
...@@ -103,13 +104,15 @@ while True: ...@@ -103,13 +104,15 @@ while True:
play_time=pygame.mixer.music.get_pos() play_time=pygame.mixer.music.get_pos()
mmm=(play_time//1000)//60 mmm=(play_time//1000)//60
sss=(play_time//1000)%60 sss=(play_time//1000)%60
if sss<10:
sss = "0"+str(sss)
new_render=str(mmm)+':'+str(sss) new_render=str(mmm)+':'+str(sss)
sound_s=sound_length%60 sound_s=sound_length%60
sound_m=sound_length//60 sound_m=sound_length//60
if sound_s<10: if sound_s<10:
sound_s="0"+str(sss) sound_s="0"+str(sss)
new_render2=str(sound_m)+':'+str(sound_s) new_render2=" / "+str(sound_m)+':'+str(sound_s)
ttt=my_font.render(new_render,True,(0,0,0)) ttt=my_font.render(new_render,True,(0,0,0))
ttt2=my_font.render(new_render2,True,(0,0,0)) ttt2=my_font.render(new_render2,True,(0,0,0))
......
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