I changed:
Code:
MakePanel1.daclick1()
Code:
MakePanel1.daclick1(daframe.Panel1,None)
daframe.Panel1 in the above call references a panel created by the MakePanel1 class, and this is the class that contains the function daclick1().
...
MakePanel1.daclick1()
MakePanel1.daclick1(daframe.Panel1,None)
#!/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()
Leave a comment: