Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #25328

Re: howto do a robust simple cross platform beep

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
From rantingrickjohnson@gmail.com
Newsgroups comp.lang.python
Subject Re: howto do a robust simple cross platform beep
Date Sat, 14 Jul 2012 18:15:05 -0700 (PDT)
Organization http://groups.google.com
Lines 17
Message-ID <4ed2a36d-a034-45d8-84f7-aa71ff17d8b5@googlegroups.com> (permalink)
References <mailman.2110.1342227619.4697.python-list@python.org>
NNTP-Posting-Host 166.249.194.253
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding quoted-printable
X-Trace posting.google.com 1342314905 3151 127.0.0.1 (15 Jul 2012 01:15:05 GMT)
X-Complaints-To groups-abuse@google.com
NNTP-Posting-Date Sun, 15 Jul 2012 01:15:05 +0000 (UTC)
Cc python-list@python.org
In-Reply-To <mailman.2110.1342227619.4697.python-list@python.org>
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=166.249.194.253; posting-account=h3aEwQoAAACiuqX-oR3gvCVFm8lLHoWj
User-Agent G2/1.0
Xref csiph.com comp.lang.python:25328

Show key headers only | View raw


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. But even "IF" you do manage to play a sound in a cross platform manner; if the speaker volume is too low, or the speakers are turned off, or the computer does not have speakers connected, etc... your user will never hear the alert! In this case, beeping the built-in speaker has the fail-safe advantage. 

Why not wrap up the functionality and release a module yourself? If you are not sure how to access the speaker on one or more OSs then ask on the list. I would love to see some community effort behind this.

PS: Better make sure this module does not exist though ;-)

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

howto do a robust simple  cross platform  beep Gelonida N <gelonida@gmail.com> - 2012-07-14 03:00 +0200
  Re: howto do a robust simple  cross platform  beep Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2012-07-14 03:19 +0000
    Re: howto do a robust simple  cross platform  beep Dieter Maurer <dieter@handshake.de> - 2012-07-14 19:54 +0200
    Re: howto do a robust simple cross platform beep Chris Angelico <rosuav@gmail.com> - 2012-07-15 04:49 +1000
      Re: howto do a robust simple cross platform beep Hans Mulder <hansmu@xs4all.nl> - 2012-07-15 02:39 +0200
        Re: howto do a robust simple cross platform beep Chris Angelico <rosuav@gmail.com> - 2012-07-15 11:07 +1000
  Re: howto do a robust simple  cross platform  beep Miki Tebeka <miki.tebeka@gmail.com> - 2012-07-14 11:43 -0700
  Re: howto do a robust simple  cross platform  beep Miki Tebeka <miki.tebeka@gmail.com> - 2012-07-14 11:43 -0700
  Re: howto do a robust simple  cross platform  beep rantingrickjohnson@gmail.com - 2012-07-14 18:15 -0700
    Re: howto do a robust simple  cross platform  beep Gelonida N <gelonida@gmail.com> - 2012-07-24 23:39 +0200
    Re: howto do a robust simple cross platform beep Chris Angelico <rosuav@gmail.com> - 2012-07-25 07:52 +1000
  Re: howto do a robust simple  cross platform  beep rantingrickjohnson@gmail.com - 2012-07-14 18:15 -0700

csiph-web