System bell

2005-03-31 Thread Baza
Am I right in thinking that >>>print "\a" should sound the system, 'bell'? B -- Computer says, 'no' -- http://mail.python.org/mailman/listinfo/python-list

Re: System bell

2005-03-31 Thread Matt
Try: import os os.system('\a') -- http://mail.python.org/mailman/listinfo/python-list

Re: System bell

2005-03-31 Thread Trent Mick
[Baza wrote] > Am I right in thinking that >>>print "\a" should sound the system, 'bell'? It works on the shell on Windows for me (WinXP). Trent -- Trent Mick [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: System bell

2005-03-31 Thread Mr6
Matt wrote: Try: import os os.system('\a') Ta, that's got it. B -- http://mail.python.org/mailman/listinfo/python-list

Re: System bell

2005-03-31 Thread Trent Mick
[Mr6 wrote] > Matt wrote: > >Try: > >import os > >os.system('\a') > > > > Ta, that's got it. I suspect that you are misinterpreting failure as success here. This is probably only resulting in a bell from the shell when it complains that it doesn't know of any command called "\a" to run. Trent -

Re: System bell

2005-03-31 Thread Daniel Bickett
r, as the OP put it, the system "bell" . I can only speak as a Windows user however; I'm unaware of the prevalence of this feature across operating systems. -- Daniel Bickett dbickett at gmail.com http://heureusement.org/ -- http://mail.python.org/mailman/listinfo/python-list

Re: System bell

2005-03-31 Thread Steve Holden
Trent Mick wrote: [Baza wrote] Am I right in thinking that >>>print "\a" should sound the system, 'bell'? It works on the shell on Windows for me (WinXP). Trent Interesting. From a Cygwin bash shell I got an elegant little dingish sort of a beep (my volume control

Re: System bell

2005-04-01 Thread Bengt Richter
On Fri, 01 Apr 2005 02:06:07 -0500, Steve Holden <[EMAIL PROTECTED]> wrote: >Trent Mick wrote: >> [Baza wrote] >> >>>Am I right in thinking that >>>print "\a" should sound the system, 'bell'? >> >> >> It works on the

Re: System bell

2005-04-01 Thread Matt
Serves me right for blindlyrunning things from IDLE. This does work (tested on WinXP only): import os os.system('echo \a') -- http://mail.python.org/mailman/listinfo/python-list

Re: System bell

2005-04-01 Thread Mr6
Bengt Richter wrote: On Fri, 01 Apr 2005 02:06:07 -0500, Steve Holden <[EMAIL PROTECTED]> wrote: Trent Mick wrote: [Baza wrote] Am I right in thinking that >>>print "\a" should sound the system, 'bell'? It works on the shell on Windows for me (WinXP). Trent In

Re: System bell

2005-04-01 Thread Trent Mick
[Mr6 wrote] > It's a weird thing. But if I run print "\a" from idle it does not work. > But if I save as a file, say, sound.py. Then run that with python > sound.py it does. > > Why is that? The IDLE stdout/stderr handling is not invoking a system bell when it