Advertisement
fmasanori

hfmix

Nov 9th, 2011
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.42 KB | None | 0 0
  1. from tkinter import *
  2. from sound_panel import *
  3. import pygame.mixer
  4. import os
  5.  
  6. app=Tk()
  7. app.title('Head First Mix')
  8.  
  9. mixer = pygame.mixer
  10. mixer.init()
  11.  
  12. dirList=os.listdir('.')
  13. for fname in dirList:
  14.     if fname.endswith('.wav') and fname[0] in '345':
  15.         SoundPanel(app, mixer, fname).pack()
  16.  
  17. def shutdown():
  18.     mixer.stop()
  19.     app.destroy()
  20.  
  21. app.protocol('WM_DELETE_WINDOW', shutdown)
  22.  
  23. app.mainloop()
  24.  
  25.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement