I would like to use tkSnack through python to manipulate sounds on my fedora 4 system, but I am unable to get the following basic script to run:
Expand|Select|Wrap|Line Numbers
- #!/usr/bin/env python
- from Tkinter import *
- root = Tk()
- import tkSnack
- tkSnack.initializeSnack(root)
- mysnd = tkSnack.Sound()
- mysnd.read('/home/dauser/Desktop/test.wav')
- mysnd.play()
File "/home/dauser/Desktop/testsnack.py", line 7, in -toplevel-
tkSnack.initializeSnack(root)
File "/usr/lib/python2.4/site-packages/tkSnack.py", line 23, in initializeSnack
Tkroot.tk.call('snack::setUseOldObjAPI')
TclError: invalid command name "snack::setUseOldObjAPI"
The same error occurs when I try to run any of the snack demo python scripts in the 'demos' folder.
I installed snack using the snack2.2.9.tar.gz tarball.
Any help will be appreciated. Thanks.