Re: howto do a robust simple cross platform beep

2012-07-24 Thread Gelonida N
On 07/15/2012 03:15 AM, rantingrickjohn...@gmail.com wrote: On Friday, July 13, 2012 8:00:05 PM UTC-5, gelonida wrote: I just want to use a beep command that works cross platform. [...] I just want to use them as alert, when certain events occur within a very long running non GUI application.

Re: howto do a robust simple cross platform beep

2012-07-24 Thread Chris Angelico
On Wed, Jul 25, 2012 at 7:39 AM, Gelonida N gelon...@gmail.com wrote: On 07/15/2012 03:15 AM, rantingrickjohn...@gmail.com wrote: On Friday, July 13, 2012 8:00:05 PM UTC-5, gelonida wrote: I just want to use a beep command that works cross platform. [...] I just want to use them as alert, when

Re: howto do a robust simple cross platform beep

2012-07-24 Thread Jerry Hill
On Fri, Jul 13, 2012 at 9:00 PM, Gelonida N gelon...@gmail.com wrote: I tried the simplest approach (just printing the BEL character '\a' chr(7) to the console. That's what I do when I want to send an audible alert to the user of a console based program. It's then up to the user's terminal to

Re: howto do a robust simple cross platform beep

2012-07-24 Thread Dan Stromberg
On Sat, Jul 14, 2012 at 1:00 AM, Gelonida N gelon...@gmail.com wrote: What I do at the moment is: For Windows I use winsound.Beep For Linux I create some raw data and pipe it into sox's 'play' command. I don't consider this very elegant You may want to get over that. Some software

Re: howto do a robust simple cross platform beep

2012-07-14 Thread Dieter Maurer
Steven D'Aprano steve+comp.lang.pyt...@pearwood.info writes: How do others handle simple beeps? I just want to use them as alert, when certain events occur within a very long running non GUI application. Why? Do you hate your users? I, too, would find it useful -- for me (although I do not

Re: howto do a robust simple cross platform beep

2012-07-14 Thread Miki Tebeka
How do others handle simple beeps? http://pymedia.org/ ? I *think* the big UI frameworks (Qt, wx ...) have some sound support. -- http://mail.python.org/mailman/listinfo/python-list

Re: howto do a robust simple cross platform beep

2012-07-14 Thread Chris Angelico
On Sun, Jul 15, 2012 at 3:54 AM, Dieter Maurer die...@handshake.de wrote: I, too, would find it useful -- for me (although I do not hate myself). Surely, you know an alarm clock. Usually, it gives an audible signal when it is time to do something. A computer can in principle be used as a

Re: howto do a robust simple cross platform beep

2012-07-14 Thread Hans Mulder
On 14/07/12 20:49:11, Chris Angelico wrote: On Sun, Jul 15, 2012 at 3:54 AM, Dieter Maurer die...@handshake.de wrote: I, too, would find it useful -- for me (although I do not hate myself). Surely, you know an alarm clock. Usually, it gives an audible signal when it is time to do something. A

Re: howto do a robust simple cross platform beep

2012-07-14 Thread Chris Angelico
On Sun, Jul 15, 2012 at 10:39 AM, Hans Mulder han...@xs4all.nl wrote: The other prerequisite is that the use is physically near the compueter where your Python process is running. If, for exmple, I'm ssh'ed into my webserver, then sending a sound file to the server's speaker may startle

Re: howto do a robust simple cross platform beep

2012-07-14 Thread rantingrickjohnson
On Friday, July 13, 2012 8:00:05 PM UTC-5, gelonida wrote: I just want to use a beep command that works cross platform. [...] I just want to use them as alert, when certain events occur within a very long running non GUI application. I can see a need for this when facing a non GUI interface.

howto do a robust simple cross platform beep

2012-07-13 Thread Gelonida N
Hi, I just want to use a beep command that works cross platform. I tried the simplest approach (just printing the BEL character '\a' chr(7) to the console. This fails on my Ubuntu 12.04 host, as the pcspkr is in the list of the blacklisted kernel modules. I found another snippet trying

Re: howto do a robust simple cross platform beep

2012-07-13 Thread Steven D'Aprano
On Sat, 14 Jul 2012 03:00:05 +0200, Gelonida N wrote: How do others handle simple beeps? I just want to use them as alert, when certain events occur within a very long running non GUI application. Why? Do you hate your users? What I do at the moment is: For Windows I use winsound.Beep