File: MinSect.py

package info (click to toggle)
snack 2.0.7-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 2,240 kB
  • ctags: 2,672
  • sloc: ansic: 26,124; sh: 7,557; tcl: 936; python: 431; makefile: 323
file content (15 lines) | stat: -rwxr-xr-x 310 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
from Tkinter import *
from tkSnack import *

root = Tkinter.Tk()

initializeSnack(root)

s = Sound(load='ex1.wav')
c = SnackCanvas(height=300, width=300)
c.pack()
c.create_section(0, 0, sound=s, start=6000, end=6100, height=300, width=300)

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

root.mainloop()