1#! /usr/bin/env python 2 3from Tkinter import * 4from tkSnack import * 5 6root = Tkinter.Tk() 7 8initializeSnack(root) 9 10s = Sound(load='ex1.wav') 11c = SnackCanvas(height=200, width=400) 12c.pack() 13c.create_spectrogram(0, 0, sound=s, height=200, width=400) 14 15Button(root, text='Exit', command=root.quit).pack() 16 17root.mainloop() 18