howto do a robust simple cross platform beep

Dan Stromberg drsalists at gmail.com
Tue Jul 24 18:19:41 EDT 2012


On Sat, Jul 14, 2012 at 1:00 AM, Gelonida N <gelonida at 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 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: <http://mail.python.org/pipermail/python-list/attachments/20120724/79b4ebf0/attachment.html>


More information about the Python-list mailing list