PDA

View Full Version : Python programing problem




larswik
Feb 26, 2009, 01:12 AM
Hello all, haven't posted in a long time. I bought a book to learn Python Programing and I am just on chapter 2 of the book "Python Programing second edition".

I typed in one of there examples and part of the examples was to make the system sound beep when it ran. It was very simple and I got no error messages but there was no sound coming from my computer. This is the simple line of code I typed in.

print "\a"

My computer is making sound because I am listening to music with headphones on. When I click the volume up and down I get clicking and I can also hear my alert sound when I activate it.

What am I doing wrong?

Thanks!

-Lars



larswik
Feb 26, 2009, 01:38 AM
Found the problem. the next page had a note that explained that if I am using the IDEL then I will get a small square box and not a sound. I need to use it from the OS and not with in the IDEL.

-Lars