[Tutor] help me on python + snack
Michael Lange
klappnase at freenet.de
Wed May 18 11:20:45 CEST 2005
On Tue, 17 May 2005 21:18:09 -0700 (PDT)
Mahmad Sadique Hannure <sadique_hannure at yahoo.com> wrote:
Hi Mahmad,
> Hello friends,
> I m currently working on sound stuff. I have installed
> all stuff related to Snack. My code for playing mp3
> song is like this
>
> #!/usr/bin/python2.3
>
> from Tkinter import *
> import tkSnack
>
> def main():
> root = Tk()
> tkSnack.initializeSnack(root)
> mysound = tkSnack.Sound('xyz.mp3')
I believe the last line is the problematic one.
Try to change it into:
mysound = tkSnack.Sound(file='xyz.mp3')
> #mysound.read()
> mysound.play()
> if __name__=='__main__':
> main()
> I works fine without any error but can't get any
> sound.
>
> So friend help me, I don't know whats wroung with my
> code.
>
I hope this helps
Michael
More information about the Tutor
mailing list