Commit b7e6b30f by BellCodeEditor

save project

parent bb2517a0
Showing with 11 additions and 1 deletions
......@@ -22,7 +22,7 @@ click = 0
play_button = stop_img
baba=[]
path='C:\\Users\\Windows 7\\Desktop\\新建文件夹 (2)'
path='C:\\Users\\Administrator\\Desktop新建文件夹'
filelist=os.listdir(path)
for i in filelist:
if i[-4:]=='.wav' or i[-4:]=='.ogg':
......@@ -61,6 +61,15 @@ while True:
play_button = play_img
pygame.mixer.music.pause()
if x>120 and x<220 and y>350 and y<400:
num-=1
if num<0:
num=len(music_list)-1
pygame.mixer_music.load(path+"\\"+music_list[num])
pygame.mixer_music.play()
click=0
if pygame.mixer.music.get_busy() == False:
num+=1
if num>len(baba)-1:
......
++ "b/urefiwe\343\200\202\346\211\251\345\244\247\344\270\272io\343\200\202\343\200\202.py"
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