Hi,

  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
Frame().bell()

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.

Mick





2011/8/23 守株待兔 <1248283...@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@python.org
> http://mail.python.org/mailman/listinfo/tkinter-discuss
>
>
_______________________________________________
Tkinter-discuss mailing list
Tkinter-discuss@python.org
http://mail.python.org/mailman/listinfo/tkinter-discuss

Reply via email to