Newbie: Alarm at end of program

dsavitsk dsavitsk at e-coli.net
Thu Apr 4 00:05:05 EST 2002


on win32 also try

>>> import winsound
>>> winsound.Beep(440,250)

the first number is the frequency, the second is the duration.

-d


"Trond Gaarder" <trondga at -NOSPAM-ifi.uio.no> wrote in message
news:a8gfr8$h4u$1 at maud.ifi.uio.no...
> Don't know if this is the best/correct way of doing it in Python, but it
> works for me (on a PC):
>
> print "\a"
>
> This should emit a beep from the pc. What it sounds like is highly
> machine-dependent, however...
>
>
> -Trond
>
>
> "billludden" <billludden at email.msn.com> wrote in message
> news:es5HyN42BHA.1996 at cpimsnntpa03...
> > Hi,
> > I have written a script that runs from a few minutes to several hours
> before
> > it finishes.  How would I make the computer play a 'beep' to signal that
> it
> > is finished?
> > Thank you,  Bill
> >
> >
>
>





More information about the Python-list mailing list