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=300, width=300) 12c.pack() 13c.create_section(0, 0, sound=s, start=6000, end=6100, height=300, width=300) 14 15Button(root, text='Exit', command=root.quit).pack() 16 17root.mainloop() 18