Newbie: How to sound an alarm
dsavitsk
dsavitsk at e-coli.net
Mon Apr 8 00:21:00 EDT 2002
below are 2 solutions that showed up. try google groups for getting old
postings.
-d
"dsavitsk" <dsavitsk at e-coli.net> wrote in message
news:5aRq8.3571$d7.1106160 at newssrv26.news.prodigy.com...
> 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:ucFMmso3BHA.1332 at cpimsnntpa03...
> Hi,
> I am attempting to learn to program using Python (first language).
> I would like to know how to make my box sound a tone or beep when my
> program finishes.
> I posted this query last week but I cannot access messages posted during
> that time (must be Windows).
> Thank You,
> Bill
>
>
>
More information about the Python-list
mailing list