Created
November 28, 2013 21:27
-
-
Save fmasanori/7698383 to your computer and use it in GitHub Desktop.
Head First DJ Mix
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from tkinter import * | |
| from sound_panel import * | |
| import pygame.mixer | |
| import os | |
| app=Tk() | |
| app.title('Head First Mix') | |
| mixer = pygame.mixer | |
| mixer.pre_init(buffer = 300) | |
| mixer.init() | |
| dirList=os.listdir('.') | |
| for fname in dirList: | |
| if fname.endswith('.aif'): | |
| SoundPanel(app, mixer, fname).pack() | |
| def shutdown(): | |
| mixer.stop() | |
| app.destroy() | |
| app.protocol('WM_DELETE_WINDOW', shutdown) | |
| app.mainloop() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment