I use windows, it works for me....
Have checked your sound card, volume before trying the code?

pujo
On 11/14/05, Johan Geldenhuys < [EMAIL PROTECTED]> wrote:
Could this be a OS thing?
I use Linux and it works here.

Steve Haley wrote:

Folks,

 

I'm one of the people new to Python who has started going through a beginner's book to learn the basics of the language ("Python Programming for the Absolute Beginner").  In the second chapter the author (Michael Dawson) illustrates the use of escape sequences with, among other things, the "\a" to sound the system bell.  However, when I run the little program myself, the program runs but I get no sound – all is get is the word BEL in while letters on a blue background.  I've turned the volume up all the way and still no sound.  I know the speakers on my laptop work because I just finished my daily session trying to learn a little Spanish which involves sound.

 

I went to the language reference which also seems to indicate I should get a sound with exactly what the author is saying.  The exact line is:

 

print "\a"

 

I'm not sure why but this kind of thing bothers me.  Can anyone suggest why my laptop won't produce a bell?  Does the fact that I'm running version 2.1 have something to do with it?  Does my laptop have something against me and just doesn't want to ring its bell for me? (just kidding with that last one)

 

Thanks in advance.

Steve

 


_______________________________________________
Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor




_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor



_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to