Commit eeb9d9d9 by BellCodeEditor

save project

parent ca27512c
Showing with 5 additions and 0 deletions
...@@ -21,6 +21,11 @@ click = 0 ...@@ -21,6 +21,11 @@ click = 0
play_button = stop_img play_button = stop_img
music_list = [] music_list = []
path="C:\\Users\\lilil\\Documents\\pygame_lesson5_diy2" path="C:\\Users\\lilil\\Documents\\pygame_lesson5_diy2"
filelist = os.listdir(path)
for i in filelist:
if i[-4:] == ".wav" or i[-4:] == ".ogg":
music_list.append(i)
while True: while True:
for event in pygame.event.get(): for event in pygame.event.get():
if event.type == locals.QUIT: if event.type == locals.QUIT:
......
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