howto do a robust simple cross platform beep

Dan Stromberg drsalists at
Wed Jul 25 00:19:41 CEST 2012

On Sat, Jul 14, 2012 at 1:00 AM, Gelonida N <gelonida at> 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/distributors don't
want you to be able to do things portably.  Others have "not invented here"
syndrome.  A lot of programming is adding multiple ways of doing the same
thing to program around the stupid wars ("choices") the vendors and
distributors push on us.

Or if you're really an idealist, start your own project to abstract away
these silly details.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Python-list mailing list