RE: System Beep?

2019-03-08 Thread Steve
Mischief almost managed. They both work when using IDLE but the second one leaves an empty window to be closed. I do like the second one. Is there a follow up command to close that window? Steve Footnote: I am simply a thing that thinks. Rene Descartes -Original Message- From: Python-

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:13

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 PlaySo

join us at the new Maintainers Summit at PyCon US

2019-03-08 Thread Shauna Gordon-McKeon
Hello CompLangPythonistas! I am co-organizing a "Maintainers Summit" at PyCon US this year. The goal is to create a community of practice to help support Python project maintainers socially, technologically, and logistically. This is the first time the event will be held, so I'm trying to spread

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 characte

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
On 2019-03-08 22:11, Steve wrote: Import winsound winsound No error, no beep either. You haven't called anything. import winsound dir(winsound) ['Beep', 'MB_ICONASTERISK', 'MB_ICONEXCLAMATION', 'MB_ICONHAND', 'MB_ICONQUESTION', 'MB_OK', 'MessageBeep', 'PlaySound', 'SND_ALIAS', 'SND_APPLICA

RE: System Beep?

2019-03-08 Thread Steve
Import winsound winsound No error, no beep either. - Footnote A cat looks up and sees a bird in a tree and says" "Hey, let's do lunch someday..." -Original Message- From: Python-list On Behalf Of Peter Otten Sent

RE: System Beep?

2019-03-08 Thread Steve
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 characters.

Re: trying to retrieve comments with activated API key

2019-03-08 Thread Drake Gossi
Ok, I think it worked. Embarrassingly, in my environment, I was clicked on "help" rather than "variable explorer." This is what is represented: api_key string 1 DEMO KEY docket_id string 1 ED-2018-OCR-0064 docs_per_page int 1 1000 total_docs int 1 32068 Does this mean I can add on

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) > N

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: trying to retrieve comments with activated API key

2019-03-08 Thread Chris Angelico
On Sat, Mar 9, 2019 at 7:47 AM Drake Gossi wrote: > > Still having issues: > > 7. import requests > 8. import csv > 9. import time > 10. import sys > 11. api_key = 'PUT API KEY HERE' > 12. docket_id = 'ED-2018-OCR-0064' > 13. total_docs = 32068 > 14. docs_per_page = 1000 > 15. > 16. r = requests.g

Re: trying to retrieve comments with activated API key

2019-03-08 Thread Drake Gossi
Still having issues: 7. import requests 8. import csv 9. import time 10. import sys 11. api_key = 'PUT API KEY HERE' 12. docket_id = 'ED-2018-OCR-0064' 13. total_docs = 32068 14. docs_per_page = 1000 15. 16. r = requests.get("https://api.data.gov:443/regulations/v3/documents.json

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? -- https://mail.python.org/mailma

RE: System Beep?

2019-03-08 Thread Steve
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 Footnote: Ultrasound

Re: System Beep?

2019-03-08 Thread Ivan "Rambius" Ivanov
Hello, On Fri, Mar 8, 2019, 3:19 PM 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) > NameE

RE: System Beep?

2019-03-08 Thread Steve
I used print(0x07) as the system called for parentheses but no error but also no sound. Should this use a default or do I have to specify frequency and duration? Footnote: Ultrasound Technician Asks Pregnant Woman If She’d Like To Know Baby’s Name -Original Message- From: Igor Korot S

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\MedReminder

RE: System Beep?

2019-03-08 Thread Steve
= 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) NameError: name 'windsound' is not defined Something missing in my cod

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 Sent

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, ever

RE: Duplicates

2019-03-08 Thread Steve
Are they going to the same or another eddress? Do you have a second e-mail address in the list? Footnote: Ultrasound Technician Asks Pregnant Woman If She'd Like To Know Baby's Name -Original Message- From: Python-list On Behalf Of Milt Sent: Friday, March 8, 2019 2:37 PM To: python-lis

Duplicates

2019-03-08 Thread Milt
I get two messages for every post - p...@netrh.com -- Regards, Milt m...@ratcliffnet.com -- https://mail.python.org/mailman/listinfo/python-list

System Beep?

2019-03-08 Thread Steve
How can I cause a system beep using code? This is using the computer's internal speaker, not an audio external speaker. Do I have control of duration or volume? Steve Footnote: Every minute, every single day, the equivalent of a truckload of plastic enters our oceans. -- https://mail.pytho

Re: trying to retrieve comments with activated API key

2019-03-08 Thread Chris Angelico
On Sat, Mar 9, 2019 at 6:14 AM Drake Gossi wrote: > > Hi everyone, > > I'm further along than I was last time. I've installed python and am > running this in spyder. This is the code I'm working with: > > import requests > import csv > import time > import sys > api_key = 'my api key' > docket_id

trying to retrieve comments with activated API key

2019-03-08 Thread Drake Gossi
Hi everyone, I'm further along than I was last time. I've installed python and am running this in spyder. This is the code I'm working with: import requests import csv import time import sys api_key = 'my api key' docket_id = 'ED-2018-OCR-0064' total_docs = 32068 docs_per_page = 1000 Where the "