I'm trying to create an audio playing program for my final project in my computer graphics class. I'm using tkSnack but i keep on getting this difficult error and i seem not to find any solution.

>>> from Tkinter import *
>>> root = Tk()
>>> import tkSnack
>>> tkSnack.initializeSnack(root)

Traceback (most recent call last):
File "<pyshell#69>", line 1, in -toplevel-
tkSnack.initializeSnack(root)
File "C:\Python24\tkSnack.py", line 21, in initializeSnack
Tkroot.tk.call('eval', 'package require snack')
TclError: can't find package snack
>>>

Please help.

You must not have installed tkSnack properly. For instance open the zip file snack2210-py.zip and extract file tkSnack.py to
C:\Python24\Lib
and the folder snacklib to
C:\Python24\tcl

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.