Re: System Beep?

2019-03-12 Thread Chris Angelico
On Wed, Mar 13, 2019 at 12:16 AM wrote: > > On Saturday, March 9, 2019 at 12:53:35 AM UTC-5, Terry Reedy wrote: > > On 3/8/2019 1:13 PM, Steve wrote: > > > How can I cause a system beep using code? > > > > >>> import winsound as ws > > >>> ws.Beep(500, 1000) > > > > and > > > > >>> from

Re: System Beep?

2019-03-12 Thread ssmitch
On Saturday, March 9, 2019 at 12:53:35 AM UTC-5, Terry Reedy wrote: > On 3/8/2019 1:13 PM, Steve wrote: > > How can I cause a system beep using code? > > >>> import winsound as ws > >>> ws.Beep(500, 1000) > > and > > >>> from tkinter import Tk > >>> root = Tk() > >>> root.bell() > > work

Re: System Beep?

2019-03-09 Thread Luuk
. Rene Descartes -Original Message- From: Python-list On Behalf Of Terry Reedy Sent: Saturday, March 9, 2019 12:53 AM To: python-list@python.org Subject: Re: System Beep? On 3/8/2019 1:13 PM, Steve wrote: How can I cause a system beep using code? >>> import winsound as ws &g

Re: System Beep?

2019-03-09 Thread eryk sun
On 3/9/19, Dennis Lee Bieber wrote: > > ... produces a sound on my system... But has to be run from a Windows > console (command line -- either "DOS" or PowerShell). Say "CMD" if that's what you mean. DOS was an OS (albeit a simple one). The CMD shell is not an OS and was never a DOS program.

Re: System Beep?

2019-03-09 Thread Chris Angelico
On Sat, Mar 9, 2019 at 10:33 PM Karsten Hilbert wrote: > > On Sat, Mar 09, 2019 at 11:55:03AM +1300, DL Neil wrote: > > > You've piqued my interest. I haven't worked with sound using Python, but a > > future project, presently graphics/video, could easily expand... > > > > I don't think it is an

Re: System Beep?

2019-03-09 Thread Karsten Hilbert
On Sat, Mar 09, 2019 at 11:55:03AM +1300, DL Neil wrote: > You've piqued my interest. I haven't worked with sound using Python, but a > future project, presently graphics/video, could easily expand... > > I don't think it is an OpSys fault, per-se. Someone with some Python-audio, > indeed

RE: System Beep?

2019-03-08 Thread Steve
-list On Behalf Of Terry Reedy Sent: Saturday, March 9, 2019 12:53 AM To: python-list@python.org Subject: Re: System Beep? On 3/8/2019 1:13 PM, Steve wrote: > How can I cause a system beep using code? >>> import winsound as ws >>> ws.Beep(500, 1000) and >>> fr

RE: System Beep?

2019-03-08 Thread Steve
Thank you, both work for me too. Mischief managed. Steve Footnote: I am simply a thing that thinks. Rene Descartes -Original Message- From: Python-list On Behalf Of Terry Reedy Sent: Saturday, March 9, 2019 12:53 AM To: python-list@python.org Subject: Re: System Beep? On 3/8/2019 1

Re: System Beep?

2019-03-08 Thread Terry Reedy
On 3/8/2019 1:13 PM, Steve wrote: How can I cause a system beep using code? >>> import winsound as ws >>> ws.Beep(500, 1000) and >>> from tkinter import Tk >>> root = Tk() >>> root.bell() work for me. The bell is not exactly a bell, but different from a monotone beep. -- Terry Jan Reedy

Re: System Beep?

2019-03-08 Thread eryk sun
On 3/8/19, Grant Edwards wrote: > > I just tested three of the terminals on my laptop, and none of them > beep when they receive a BEL. In Ubuntu, enable sound effects and select an alert sound, and then enable "Terminal bell" in GNOME Terminal's preferences. In Windows, the console calls

Re: System Beep?

2019-03-08 Thread Grant Edwards
On 2019-03-08, Steve wrote: > I tried all three, nothing audio. I am beginning to wonder if > something I the operating system is at fault. The three lines do > produce symbols. The first two are a rectangle with a space in the > middle and the last one spelled out "bel" in short/small

Re: System Beep?

2019-03-08 Thread DL Neil
Steve, On 9/03/19 11:03 AM, Steve wrote: I tried all three, nothing audio. I am beginning to wonder if something I the operating system is at fault. The three lines do produce symbols. The first two are a rectangle with a space in the middle and the last one spelled out "bel" in short/small

Re: System Beep?

2019-03-08 Thread MRAB
the internal speaker. (Is it even a speaker? It might be a piezo buzzer.) -Original Message- From: Python-list On Behalf Of Peter Otten Sent: Friday, March 8, 2019 3:42 PM To: python-list@python.org Subject: RE: System Beep? Steve wrote: You have a typo. It is winsound, not winDsound

RE: System Beep?

2019-03-08 Thread Steve
Of Peter Otten Sent: Friday, March 8, 2019 3:42 PM To: python-list@python.org Subject: RE: System Beep? Steve wrote: >> You have a typo. It is winsound, not winDsound. > Yes, I saw that. It still failed with, or without, the “d”. I played > with case and the use of (). They all produ

RE: System Beep?

2019-03-08 Thread Steve
8, 2019 3:51 PM To: python-list@python.org Subject: Re: System Beep? Dear Squeak, sorry, Dear Steve, Back in the ?good, old days when we used to walk alongside a mainframe CPU whilst it cogitated, we would often use the BEL character to alert us to job completion (and meantime bunk-off

Re: System Beep?

2019-03-08 Thread Karsten Hilbert
On Fri, Mar 08, 2019 at 03:16:28PM -0500, Steve wrote: > = RESTART: C:\Gork\Med Insulin codes\MedReminder 127.py > = > Traceback (most recent call last): > File "C:\Gork\Med Insulin codes\MedReminder 127.py", line 13, in > > windsound.Beep #(frequency, duration) >

Re: System Beep?

2019-03-08 Thread DL Neil
Dear Squeak, sorry, Dear Steve, Back in the ?good, old days when we used to walk alongside a mainframe CPU whilst it cogitated, we would often use the BEL character to alert us to job completion (and meantime bunk-off to go have a coffee, cakes, ...) - more seriously, it alerted telegraph and

RE: System Beep?

2019-03-08 Thread Peter Otten
Steve wrote: >> You have a typo. It is winsound, not winDsound. > Yes, I saw that. It still failed with, or without, the “d”. I played > with case and the use of (). They all produced similar errors Did you import the winsound module before trying to use it? --

RE: System Beep?

2019-03-08 Thread Steve
asound Technician Asks Pregnant Woman If She’d Like To Know Baby’s Name From: Ivan "Rambius" Ivanov Sent: Friday, March 8, 2019 3:25 PM To: Steve Cc: David Raymond ; python-list@python.org Subject: Re: System Beep? Hello, On Fri, Mar 8, 2019, 3:19 PM Steve mailto:Gronicus@sg

Re: System Beep?

2019-03-08 Thread Ivan "Rambius" Ivanov
her 2% a bad name. > > > -Original Message- > From: Python-list On > Behalf Of David Raymond > Sent: Friday, March 8, 2019 3:02 PM > To: python-list@python.org > Subject: RE: System Beep? > > Windows has the built in winsound module that lets you set frequency and &g

RE: System Beep?

2019-03-08 Thread Steve
Sent: Friday, March 8, 2019 2:56 PM To: Steve Cc: python-list@python.org Subject: Re: System Beep? Hi, On Fri, Mar 8, 2019 at 1:35 PM Steve wrote: > > How can I cause a system beep using code? > This is using the computer's internal speaker, not an audio external > speaker. Print

RE: System Beep?

2019-03-08 Thread David Raymond
I believe you added an extra D there. winsound, not winDsound -Original Message- From: Steve [mailto:Gronicus@SGA.Ninja] Sent: Friday, March 08, 2019 3:16 PM To: David Raymond; python-list@python.org Subject: RE: System Beep? = RESTART: C:\Gork\Med Insulin codes

RE: System Beep?

2019-03-08 Thread Steve
sing in my code? 98% of lawyers give the other 2% a bad name. -Original Message- From: Python-list On Behalf Of David Raymond Sent: Friday, March 8, 2019 3:02 PM To: python-list@python.org Subject: RE: System Beep? W

RE: System Beep?

2019-03-08 Thread David Raymond
Windows has the built in winsound module that lets you set frequency and duration, not sure about other OS's. https://docs.python.org/3.7/library/winsound.html -Original Message- From: Python-list [mailto:python-list-bounces+david.raymond=tomtom@python.org] On Behalf Of Steve

Re: System Beep?

2019-03-08 Thread Igor Korot
Hi, On Fri, Mar 8, 2019 at 1:35 PM Steve wrote: > > How can I cause a system beep using code? > This is using the computer's internal speaker, not an audio external > speaker. Print 0x07. Thank you. > Do I have control of duration or volume? > > Steve > > > > > > Footnote: > Every minute,