Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > d38720fb54e027df26fb6c1d066b4398 > files > 7

python-snack-2.2.10-7mdv2009.1.i586.rpm

#! /usr/bin/env python

from Tkinter import *
from tkSnack import *

root = Tkinter.Tk()

initializeSnack(root)

s = Sound(load='ex1.wav')
c = SnackCanvas(height=200, width=400)
c.pack()
c.create_spectrogram(0, 0, sound=s, height=200, width=400)

Button(root, text='Exit', command=root.quit).pack()

root.mainloop()