[Tutor] Visual and audible system bell

David Smith das.mm.mm at gmail.com
Mon Dec 12 08:57:16 CET 2011


Dear list

In a terminal window

	python3.2 

at the command gives me 

Python 3.2 (r32:88452, Feb 20 2011, 11:12:31) 
[GCC 4.2.1 (Apple Inc. build 5664)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> 

then

>>>> print ("\a")

triggers a visual and audible bell as set in Terminal window preferences.

However 

>>>> print ("\a")

and pressing Enter in a Python Shell window

or including 

print ("\a")
input ("\n\nPress the enter key to exit.")

results in neither a visible nor an audible system bell.

Any suggestions?

Mac OS X 10.7.2
Terminal 2.2.1(299)
Python 3.2
Tk 8.5

Dax





More information about the Tutor mailing list