[Tkinter-discuss] why no sound?

Michael O'Donnell michael.odonnell at uam.es
Tue Aug 23 12:42:59 CEST 2011


  You should always reduce your example code to the bare minimum
needed to demonstrate the problem.
(often you see the problem yourself  in doing that)

Your code reduces to:

from Tkinter import Frame

Does that work on your machine?
If not, check your speakers are turned on and plugged in.

Otherwise, what platform are you on?

It works for me under python 2.7.1 on Windows 7,
I get the bell sound.


2011/8/23 守株待兔 <1248283536 at qq.com>:
> here is the code
> from Tkinter import *
> class Alarm(Frame):
>     def __init__(self):
>         Frame.__init__(self)
>         self.bell()
> if __name__ == '__main__':
>     Alarm().mainloop()
> there is no sound when it run ,why?
> _______________________________________________
> Tkinter-discuss mailing list
> Tkinter-discuss at python.org
> http://mail.python.org/mailman/listinfo/tkinter-discuss

More information about the Tkinter-discuss mailing list