Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from tkinter import *
- from sound_panel import *
- import pygame.mixer
- import os
- app=Tk()
- app.title('Head First Mix')
- mixer = pygame.mixer
- mixer.init()
- dirList=os.listdir('.')
- for fname in dirList:
- if fname.endswith('.wav') and fname[0] in '345':
- SoundPanel(app, mixer, fname).pack()
- def shutdown():
- mixer.stop()
- app.destroy()
- app.protocol('WM_DELETE_WINDOW', shutdown)
- app.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement