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 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 vendors/distr

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 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 do whatever the u

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 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 certain e

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 applic

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.

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 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 someone in the da

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 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 c

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 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 flexible alarm cloc

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 Dieter Maurer
Steven D'Aprano 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 hate myself). Surely, you

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 winsoun