[Tutor] Beep sound

Steven D'Aprano steve at pearwood.info
Sat Mar 23 03:17:43 CET 2013


On 23/03/13 12:48, Phil wrote:
> Just out of curiosity how can a beep sound be generated?
>
> My interest in this came about because echo -e '\a' no longer works. Also print '\a' doesn't work, presumably for the same reason. The following is also mute:
>
> import Tkinter
> Tkinter.Tk().bell()
>
> Print '\a', under Idle, causes a bell icon to be displayed so it seems that the lack of a beep is due to a system setting.


Would you like us to guess what system you are running? Linux, Mac OS, Windows, FreeBSD, OpenBSD, Android, something else? My guess is... Windows XP. Am I close?

Is your sound volume on and not muted?

Can you play other sounds?

Does your terminal have the "Terminal Bell" enabled?



-- 
Steven


More information about the Tutor mailing list