Re: Beep on WIndows 11

2023-11-12 Thread Chris Angelico via Python-list
t; Python offers winsound.Beep. 1 tone, no volume control, and it blocks > while beeping. I learned to make a computer beep using the programmable timer chip (8254?). Send it signals on the I/O port saying "timer chip, speaker signal, counter = N" (where N is the fundamen

Re: Beep on WIndows 11

2023-11-12 Thread MRAB via Python-list
On 2023-11-12 11:16, Chris Angelico via Python-list wrote: On Sun, 12 Nov 2023 at 21:27, Y Y via Python-list wrote: I am curious and humble to ask: What is the purpose of a BEEP? There are several purposes. I can't say which of these are relevant to the OP, but some or all of them could

Re: Beep on WIndows 11

2023-11-12 Thread Chris Angelico via Python-list
On Sun, 12 Nov 2023 at 21:27, Y Y via Python-list wrote: > > I am curious and humble to ask: What is the purpose of a BEEP? > There are several purposes. I can't say which of these are relevant to the OP, but some or all of them could easily be. * A very very simple notification

Re: Beep on WIndows 11

2023-11-12 Thread Dan Sommers via Python-list
On 2023-11-11 at 23:44:19 +, Y Y via Python-list wrote: > I am curious and humble to ask: What is the purpose of a BEEP? It's a simple way for a terminal-based program to alert (hence '\a') a user or an operator that their attention is requested or required. See also <

Re: Beep on WIndows 11

2023-11-12 Thread jak via Python-list
nsole (aka stdout) no longer beeps (or makes any sound).  This is true whether I print "\a" from a python program, or "type ". I have found via Google workarounds such as     os.system("rundll32 user32.dll,MessageBeep") but it is a trifle annoying to have to modify

RE: Beep on WIndows 11

2023-11-12 Thread Y Y via Python-list
I am curious and humble to ask: What is the purpose of a BEEP? -Original Message- From: Python-list On Behalf Of Rob Cliffe via Python-list Sent: Sunday, November 12, 2023 6:50 AM To: Python Subject: Beep on WIndows 11  Apologies if this is not a Python question. I  recently moved

Beep on WIndows 11

2023-11-11 Thread Rob Cliffe via Python-list
nger beeps (or makes any sound).  This is true whether I print "\a" from a python program, or "type ". I have found via Google workarounds such as     os.system("rundll32 user32.dll,MessageBeep") but it is a trifle annoying to have to modify all of my p

RE: Regarding inability of Python Module Winsound to produce beep in decimal frequency

2021-08-18 Thread Steve
-Original Message- From: Python-list On Behalf Of Greg Ewing Sent: Wednesday, August 18, 2021 11:49 AM To: python-list@python.org Subject: Re: Regarding inability of Python Module Winsound to produce beep in decimal frequency On 18/08/21 4:43 pm, Steve wrote: >> >> "

Re: Regarding inability of Python Module Winsound to produce beep in decimal frequency

2021-08-18 Thread Greg Ewing
On 18/08/21 4:43 pm, Steve wrote: "The HAL (hardware abstraction layer) function HalMakeBeep()" Is the beep that opens the pod bay doors? def HalMakeBeepUsingPCSpeaker(): raise IOError("I'm sorry, I can't do that, Dave.") -- Greg -- https://mail.python.org/mailman/listinfo/python-list

RE: Regarding inability of Python Module Winsound to produce beep in decimal frequency

2021-08-17 Thread Steve
"The HAL (hardware abstraction layer) function HalMakeBeep()" Is the beep that opens the pod bay doors? Footnote:  George Melly remarked to Mike Jagger on how lined his face was for one so young. Jagger replied “They’re laughter lines George” to which Melly countered: “Mick, nothin

Re: Regarding inability of Python Module Winsound to produce beep in decimal frequency

2021-08-17 Thread Eryk Sun
ere's a fallback audio device that uses the PC speaker on systems that lack even basic audio support in their chipset. But in common practice, Beep() does not use the PC speaker. The "beep.sys" driver in Windows 7+ has no code path that starts a PC speaker beep via HalMakeBeep(frequen

Re: Regarding inability of Python Module Winsound to produce beep in decimal frequency

2021-08-17 Thread Dennis Lee Bieber
On Tue, 17 Aug 2021 15:11:05 +1000, Chris Angelico declaimed the following: > >Huh. Okay. Then I withdraw the concern from this list, and instead lay >it at Microsoft's feet. That is, I maintain, a bizarre choice. Surely >there are better ways to trigger audio on the sound card? >

Re: Regarding inability of Python Module Winsound to produce beep in decimal frequency

2021-08-16 Thread Chris Angelico
On Tue, Aug 17, 2021 at 1:50 PM Eryk Sun wrote: > > On 8/16/21, Chris Angelico wrote: > > On Tue, Aug 17, 2021 at 11:44 AM Eryk Sun wrote: > > > >> Yes, the PC speaker beep does not get used in Windows 7+. The beep > >> device object is retained

Re: Regarding inability of Python Module Winsound to produce beep in decimal frequency

2021-08-16 Thread Eryk Sun
On 8/16/21, Chris Angelico wrote: > On Tue, Aug 17, 2021 at 11:44 AM Eryk Sun wrote: > >> Yes, the PC speaker beep does not get used in Windows 7+. The beep >> device object is retained for compatibility, but it redirects the >> request to a task in the user's session

Re: Regarding inability of Python Module Winsound to produce beep in decimal frequency

2021-08-16 Thread Chris Angelico
ore capable than those one-bit PC speakers. > > Yes, the PC speaker beep does not get used in Windows 7+. The beep > device object is retained for compatibility, but it redirects the > request to a task in the user's session (which could be a remote > desktop session) that genera

Re: Regarding inability of Python Module Winsound to produce beep in decimal frequency

2021-08-16 Thread Eryk Sun
On 8/16/21, Roel Schroeven wrote: > > We're not necessarily talking about the PC speaker here: (almost) all > computers these days have sound cards (mostly integrated on the > motherboard) that are much more capable than those one-bit PC speakers. Yes, the PC speaker beep does

Re: Regarding inability of Python Module Winsound to produce beep in decimal frequency

2021-08-16 Thread jak
of music instruments. I am producing the musical notes using the Beep function of Winsound Module( https://docs.python.org/3/library/winsound.html) by passing frequency as a argument to the function. Now whenever i provide frequency of any note in decimal(for example 277.1826 for C4 note) it shows

Re: Regarding inability of Python Module Winsound to produce beep in decimal frequency

2021-08-16 Thread Roel Schroeven
a one-bit PC speaker, which the > > > Beep function will be using. > > Rounding to integer frequencies will produce disastrously out-of-tune > notes in a musical context! Particularly for low notes, where a whole > semitone is only a couple of Hz difference. Even for higher notes,

Re: Regarding inability of Python Module Winsound to produce beep in decimal frequency

2021-08-15 Thread Joel Goldstick
m 277.1826Hz when it's played on a one-bit PC speaker, which the > > > > Beep function will be using. > > > > Rounding to integer frequencies will produce disastrously out-of-tune > > notes in a musical context! Particularly for low notes, where a whole > > se

Re: Regarding inability of Python Module Winsound to produce beep in decimal frequency

2021-08-14 Thread Chris Angelico
On Sun, Aug 15, 2021 at 1:02 PM John O'Hagan wrote: > > > On 2021-08-13 17:17, Chris Angelico wrote: > > > Is it really? In my experience, no human ear can distinguish 277Hz > > > from 277.1826Hz when it's played on a one-bit PC speaker, which the > > > Beep

Re: Regarding inability of Python Module Winsound to produce beep in decimal frequency

2021-08-14 Thread John O'Hagan
good health. > >> > > >> > I am Umang Goswami, a Python developer and student working on a > >> > huge project for automation of music instruments. I am producing > >> > the musical notes using the Beep function of Winsound Module( > >> > h

Re: Regarding inability of Python Module Winsound to produce beep in decimal frequency

2021-08-13 Thread MRAB
r automation of music instruments. I am producing the musical > notes using the Beep function of Winsound Module( > https://docs.python.org/3/library/winsound.html) by passing frequency as a > argument to the function. > > Now whenever i provide frequency of any note in decimal(for exa

Re: Regarding inability of Python Module Winsound to produce beep in decimal frequency

2021-08-13 Thread Chris Angelico
ic instruments. I am producing the musical > > notes using the Beep function of Winsound Module( > > https://docs.python.org/3/library/winsound.html) by passing frequency as a > > argument to the function. > > > > Now whenever i provide frequency of any note in decimal(fo

Re: Regarding inability of Python Module Winsound to produce beep in decimal frequency

2021-08-13 Thread Terry Reedy
On 8/13/2021 6:53 AM, Umang Goswami wrote: Hi There, Hope you find this mail in good health. I am Umang Goswami, a Python developer and student working on a huge project for automation of music instruments. I am producing the musical notes using the Beep function of Winsound Module( https

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

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

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
ng the BEL control character to the terminal. Many, but not all, terminals still support that one way or another. But it's got nothing to do with access to any DSPs. However, under the hood, the "system speaker" will nowadays be faked any number of ways: flashing the terminal, piezo buzz

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 differen

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

Re: System Beep?

2019-03-08 Thread Grant Edwards
l" in short/small characters. Not all terminals produce a beep when they receive a BEL character. Many X11 terminals used to flash the entire terminal window instead (otherwise you had no way to know which terminal caused the "beep"). I just tested three of the terminals on my la

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

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

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
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? The BEL character was included in the ASCII standard as chr(7)*. Back in those days, the rest of the world didn't exist - the

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
Sent: Friday, March 08, 2019 1:14 PM To: python-list@python.org Subject: System Beep? 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

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

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

Re: howto do a robust simple cross platform beep

2012-07-24 Thread Gelonida N
On 07/15/2012 03:15 AM, rantingrickjohn...@gmail.com wrote: 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

Re: howto do a robust simple cross platform beep

2012-07-24 Thread Chris Angelico
On Wed, Jul 25, 2012 at 7:39 AM, Gelonida N gelon...@gmail.com wrote: On 07/15/2012 03:15 AM, rantingrickjohn...@gmail.com wrote: 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

Re: howto do a robust simple cross platform beep

2012-07-24 Thread Jerry Hill
On Fri, Jul 13, 2012 at 9:00 PM, Gelonida N gelon...@gmail.com wrote: I tried the simplest approach (just printing the BEL character '\a' chr(7) to the console. That's what I do when I want to send an audible alert to the user of a console based program. It's then up to the user's terminal to

Re: howto do a robust simple cross platform beep

2012-07-24 Thread Dan Stromberg
On Sat, Jul 14, 2012 at 1:00 AM, Gelonida N gelon...@gmail.com wrote: What I do at the moment is: For Windows I use winsound.Beep For Linux I create some raw data and pipe it into sox's 'play' command. I don't consider this very elegant You may want to get over that. Some software

Re: howto do a robust simple cross platform beep

2012-07-14 Thread Dieter Maurer
Steven D'Aprano steve+comp.lang.pyt...@pearwood.info writes: How do others handle simple beeps? I just want to use them as alert, when certain events occur within a very long running non GUI application. Why? Do you hate your users? I, too, would find it useful -- for me (although I do not

Re: howto do a robust simple cross platform beep

2012-07-14 Thread Miki Tebeka
How do others handle simple beeps? http://pymedia.org/ ? I *think* the big UI frameworks (Qt, wx ...) have some sound support. -- http://mail.python.org/mailman/listinfo/python-list

Re: howto do a robust simple cross platform beep

2012-07-14 Thread Chris Angelico
On Sun, Jul 15, 2012 at 3:54 AM, Dieter Maurer die...@handshake.de wrote: I, too, would find it useful -- for me (although I do not hate myself). Surely, you know an alarm clock. Usually, it gives an audible signal when it is time to do something. A computer can in principle be used as a

Re: howto do a robust simple cross platform beep

2012-07-14 Thread Hans Mulder
is running. If, for exmple, I'm ssh'ed into my webserver, then sending a sound file to the server's speaker may startle someone in the data centre, but it won't attract my attention. If, OTOH, you do: print \7 , then an ASCII bell will be sent across the network, and my terminal emulator will beep

Re: howto do a robust simple cross platform beep

2012-07-14 Thread Chris Angelico
someone in the data centre, but it won't attract my attention. If, OTOH, you do: print \7 , then an ASCII bell will be sent across the network, and my terminal emulator will beep. Sure, though other of the OP's ideas preclude that too. But you could use any network protocol that acknowledges

Re: howto do a robust simple cross platform beep

2012-07-14 Thread rantingrickjohnson
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

howto do a robust simple cross platform beep

2012-07-13 Thread Gelonida N
Hi, I just want to use a beep command that works cross platform. I tried the simplest approach (just printing the BEL character '\a' chr(7) to the console. This fails on my Ubuntu 12.04 host, as the pcspkr is in the list of the blacklisted kernel modules. I found another snippet trying

Re: howto do a robust simple cross platform beep

2012-07-13 Thread Steven D'Aprano
For Linux I create some raw data and pipe it into sox's 'play' command. I don't consider this very elegant. There is no cross-platform way to play a beep. Every few years, people complain that Python doesn't have a standard way to play a simple alert sound. Why ask for volunteers to write

Re: Beep

2008-12-23 Thread Jeremiah Dodds
On Mon, Dec 22, 2008 at 10:42 PM, Jeffrey Barish jeff_bar...@earthlink.netwrote: On Ubuntu, it is possible to set visual and audible beeps separately. When I set both, I get the visual beep, but not the audible one. It's not a Python issue -- so I should take this thread to Ubuntu

Re: Beep

2008-12-23 Thread Ivan Illarionov
On Dec 22, 3:16 am, Jeffrey Barish jeff_bar...@earthlink.net wrote: I use sys.stdout.write('\a') to beep.  It works fine on Kubuntu, but not on two other platforms (one of which is Ubuntu).  I presume that the problem is due to a system configuration issue.  Can someone point me in the right

Re: Beep

2008-12-22 Thread Tobias Andersson
Jeffrey Barish skrev: Chris Rebert wrote: Is the 'pcspkr' kernel module built and loaded? Yes. And I should have mentioned that I get sound from Ubuntu applications that produce sound. Also, is the terminal bell set to visual? If so chr(7) only produces a brief flash (or similar). --

Re: Beep

2008-12-22 Thread Jeffrey Barish
flash (or similar). On Ubuntu, it is possible to set visual and audible beeps separately. When I set both, I get the visual beep, but not the audible one. It's not a Python issue -- so I should take this thread to Ubuntu -- because I observe this behavior even when I hit backspace

Beep

2008-12-21 Thread Jeffrey Barish
I use sys.stdout.write('\a') to beep. It works fine on Kubuntu, but not on two other platforms (one of which is Ubuntu). I presume that the problem is due to a system configuration issue. Can someone point me in the right direction? Thanks. -- Jeffrey Barish -- http://mail.python.org/mailman

Re: Beep

2008-12-21 Thread Chris Rebert
On Sun, Dec 21, 2008 at 4:16 PM, Jeffrey Barish jeff_bar...@earthlink.net wrote: I use sys.stdout.write('\a') to beep. It works fine on Kubuntu, but not on two other platforms (one of which is Ubuntu). I presume that the problem is due to a system configuration issue. Can someone point me

Re: Beep

2008-12-21 Thread Stef Mientki
Jeffrey Barish wrote: I use sys.stdout.write('\a') to beep. It works fine on Kubuntu, but not on two other platforms (one of which is Ubuntu). I presume that the problem is due to a system configuration issue. Can someone point me in the right direction? Thanks. I started a thread about

Re: Beep

2008-12-21 Thread Jeffrey Barish
Chris Rebert wrote: Is the 'pcspkr' kernel module built and loaded? Yes. And I should have mentioned that I get sound from Ubuntu applications that produce sound. -- Jeffrey Barish -- http://mail.python.org/mailman/listinfo/python-list

Re: how to get a beep, OS independent ?

2008-12-10 Thread Duncan Booth
Grant Edwards [EMAIL PROTECTED] wrote: On 2008-12-09, greg [EMAIL PROTECTED] wrote: Duncan Booth wrote: If I'm logged in to one of my servers in a large datacentre then I don't what that system to beep as that would be pretty useless. It also might cause the datacentre operators some

Re: how to get a beep, OS independent ?

2008-12-09 Thread Duncan Booth
greg [EMAIL PROTECTED] wrote: Duncan Booth wrote: If I'm logged in to one of my servers in a large datacentre then I don't what that system to beep as that would be pretty useless. It also might cause the datacentre operators some consternation when one of their servers starts mysteriously

Re: how to get a beep, OS independent ?

2008-12-09 Thread Grant Edwards
On 2008-12-09, greg [EMAIL PROTECTED] wrote: Duncan Booth wrote: If I'm logged in to one of my servers in a large datacentre then I don't what that system to beep as that would be pretty useless. It also might cause the datacentre operators some consternation when one of their servers

Re: how to get a beep, OS independent ?

2008-12-08 Thread Gabriel Genellina
En Sun, 07 Dec 2008 23:34:17 -0200, Joe Strout [EMAIL PROTECTED] escribió: On Dec 7, 2008, at 4:43 PM, Steven D'Aprano wrote: Of course, if you're volunteering to write such a standard system beep for Python, I for one would be grateful. I am. But where should I put it? Assuming we don't

Re: how to get a beep, OS independent ?

2008-12-08 Thread Duncan Booth
Joe Strout [EMAIL PROTECTED] wrote: But invoking the standard system beep is such a basic function that it ought to be easier than this. I'm pretty sure it's a single OS call on all platforms. On OS X, for example, it's void NSBeep(void); declared in NSGraphics.h. I'm sure it's

Re: how to get a beep, OS independent ?

2008-12-08 Thread malkarouri
On 6 Dec, 23:40, Stef Mientki [EMAIL PROTECTED] wrote: hello, I want to give a small beep, Just to add to the options here. Where ncurses work you can use: python -c 'from curses import *;wrapper(lambda s:beep())' To try it just enter the whole line above in the command line.. Regards

Re: how to get a beep, OS independent ?

2008-12-08 Thread Stef Mientki
Joe Strout wrote: On Dec 7, 2008, at 4:43 PM, Steven D'Aprano wrote: Of course, if you're volunteering to write such a standard system beep for Python, I for one would be grateful. I am. But where should I put it? Assuming we don't want to wait for the (understandably) lengthy

Re: how to get a beep, OS independent ?

2008-12-08 Thread J. Cliff Dyer
On Sun, 2008-12-07 at 21:13 +, Peter Pearson wrote: On Sun, 07 Dec 2008 00:40:53 +0100, Stef Mientki wrote: I want to give a small beep, for windows there's message-beep, and there seems to be something like curses , but that package seems to be totally broken in P2.5 for windows

Re: how to get a beep, OS independent ?

2008-12-08 Thread Jorgen Grahn
On 7 Dec 2008 14:46:53 GMT, Marc 'BlackJack' Rintsch [EMAIL PROTECTED] wrote: On Sun, 07 Dec 2008 07:17:30 -0700, Joe Strout wrote: But invoking the standard system beep is such a basic function that it ought to be easier than this. I'm pretty sure it's a single OS call on all platforms

Re: how to get a beep, OS independent ?

2008-12-08 Thread Gabriel Genellina
En Sun, 07 Dec 2008 23:34:17 -0200, Joe Strout [EMAIL PROTECTED] escribió: On Dec 7, 2008, at 4:43 PM, Steven D'Aprano wrote: Of course, if you're volunteering to write such a standard system beep for Python, I for one would be grateful. I am. But where should I put it? Assuming we don't

Re: how to get a beep, OS independent ?

2008-12-08 Thread greg
Duncan Booth wrote: If I'm logged in to one of my servers in a large datacentre then I don't what that system to beep as that would be pretty useless. It also might cause the datacentre operators some consternation when one of their servers starts mysteriously beeping... -- Greg -- http

Re: how to get a beep, OS independent ?

2008-12-07 Thread Stef Mientki
Rainy wrote: On Dec 6, 3:40 pm, Stef Mientki [EMAIL PROTECTED] wrote: hello, I want to give a small beep, for windows there's message-beep, and there seems to be something like curses , but that package seems to be totally broken in P2.5 for windows. Any other suggestions ? thanks, Stef

Re: how to get a beep, OS independent ?

2008-12-07 Thread Chris Rebert
On Sun, Dec 7, 2008 at 1:27 AM, Stef Mientki [EMAIL PROTECTED] wrote: Rainy wrote: On Dec 6, 3:40 pm, Stef Mientki [EMAIL PROTECTED] wrote: hello, I want to give a small beep, for windows there's message-beep, and there seems to be something like curses , but that package seems

Re: how to get a beep, OS independent ?

2008-12-07 Thread Stef Mientki
Chris Rebert wrote: On Sun, Dec 7, 2008 at 1:27 AM, Stef Mientki [EMAIL PROTECTED] wrote: Rainy wrote: On Dec 6, 3:40 pm, Stef Mientki [EMAIL PROTECTED] wrote: hello, I want to give a small beep, for windows there's message-beep, and there seems to be something like curses

Re: how to get a beep, OS independent ?

2008-12-07 Thread Duncan Booth
, so I expect that the Python version differs. I expect it is the terminal software you are using that differs rather than Python. Python is just printing the ascii bell character: some environments will interpret that as a request to make a beep, some will do things like flashing the whole

Re: how to get a beep, OS independent ?

2008-12-07 Thread Joe Strout
On Dec 7, 2008, at 6:36 AM, Duncan Booth wrote: Python is just printing the ascii bell character: some environments will interpret that as a request to make a beep, some will do things like flashing the whole screen, others just output a graphic character. Python doesn't know what your

Re: how to get a beep, OS independent ?

2008-12-07 Thread info
Sorry, with import Tkinter Tkinter.Tk().bell() you get a new window for the same price... So it's usefull only when using tkinter -- http://mail.python.org/mailman/listinfo/python-list

Re: how to get a beep, OS independent ?

2008-12-07 Thread Marc 'BlackJack' Rintsch
On Sun, 07 Dec 2008 07:17:30 -0700, Joe Strout wrote: But invoking the standard system beep is such a basic function that it ought to be easier than this. I'm pretty sure it's a single OS call on all platforms. On OS X, for example, it's void NSBeep(void); declared in NSGraphics.h

Re: how to get a beep, OS independent ?

2008-12-07 Thread info
On Dec 7, 12:40 am, Stef Mientki [EMAIL PROTECTED] wrote: hello, I want to give a small beep, for windows there's message-beep, and there seems to be something like curses , but that package seems to be totally broken in P2.5 for windows. Any other suggestions ? thanks, Stef Mientki

Re: how to get a beep, OS independent ?

2008-12-07 Thread Grant Edwards
On 2008-12-07, Joe Strout [EMAIL PROTECTED] wrote: But invoking the standard system beep What makes you think there is such a thing as the standard system beep? -- Grant -- http://mail.python.org/mailman/listinfo/python-list

Re: how to get a beep, OS independent ?

2008-12-07 Thread George Sakkis
On Dec 7, 7:49 am, Stef Mientki [EMAIL PROTECTED] wrote: Chris Rebert wrote: On Sun, Dec 7, 2008 at 1:27 AM, Stef Mientki [EMAIL PROTECTED] wrote: Rainy wrote: On Dec 6, 3:40 pm, Stef Mientki [EMAIL PROTECTED] wrote: hello, I want to give a small beep, for windows there's message

Re: how to get a beep, OS independent ?

2008-12-07 Thread Joe Strout
On Dec 7, 2008, at 8:48 AM, Grant Edwards wrote: On 2008-12-07, Joe Strout [EMAIL PROTECTED] wrote: But invoking the standard system beep What makes you think there is such a thing as the standard system beep? Because OS X (the platform with which I'm most familiar) certainly has one

Re: how to get a beep, OS independent ?

2008-12-07 Thread Peter Pearson
On Sun, 07 Dec 2008 00:40:53 +0100, Stef Mientki wrote: I want to give a small beep, for windows there's message-beep, and there seems to be something like curses , but that package seems to be totally broken in P2.5 for windows. Any other suggestions ? Many people have suggested sending

Re: how to get a beep, OS independent ?

2008-12-07 Thread Diez B. Roggisch
Peter Pearson schrieb: On Sun, 07 Dec 2008 00:40:53 +0100, Stef Mientki wrote: I want to give a small beep, for windows there's message-beep, and there seems to be something like curses , but that package seems to be totally broken in P2.5 for windows. Any other suggestions ? Many people

Re: how to get a beep, OS independent ?

2008-12-07 Thread D'Arcy J.M. Cain
On Sun, 7 Dec 2008 12:56:14 -0700 Joe Strout [EMAIL PROTECTED] wrote: On Dec 7, 2008, at 8:48 AM, Grant Edwards wrote: What makes you think there is such a thing as the standard system beep? Because OS X (the platform with which I'm most familiar) certainly has one, and REALbasic has

Re: how to get a beep, OS independent ?

2008-12-07 Thread Steven D'Aprano
On Sun, 07 Dec 2008 12:56:14 -0700, Joe Strout wrote: On Dec 7, 2008, at 8:48 AM, Grant Edwards wrote: On 2008-12-07, Joe Strout [EMAIL PROTECTED] wrote: But invoking the standard system beep What makes you think there is such a thing as the standard system beep? Because OS X

Re: how to get a beep, OS independent ?

2008-12-07 Thread Joe Strout
On Dec 7, 2008, at 4:43 PM, Steven D'Aprano wrote: Of course, if you're volunteering to write such a standard system beep for Python, I for one would be grateful. I am. But where should I put it? Assuming we don't want to wait for the (understandably) lengthy and contentious process

Re: how to get a beep, OS independent ?

2008-12-07 Thread Grant Edwards
On 2008-12-07, Peter Pearson [EMAIL PROTECTED] wrote: On Sun, 07 Dec 2008 00:40:53 +0100, Stef Mientki wrote: I want to give a small beep, for windows there's message-beep, and there seems to be something like curses , but that package seems to be totally broken in P2.5 for windows. Any

Re: how to get a beep, OS independent ?

2008-12-07 Thread [EMAIL PROTECTED]
On Dec 7, 8:34 pm, Joe Strout [EMAIL PROTECTED] wrote: On Dec 7, 2008, at 4:43 PM, Steven D'Aprano wrote: Of course, if you're volunteering to write such a standard system beep for Python, I for one would be grateful. I am.  But where should I put it?  Assuming we don't want to wait

how to get a beep, OS independent ?

2008-12-06 Thread Stef Mientki
hello, I want to give a small beep, for windows there's message-beep, and there seems to be something like curses , but that package seems to be totally broken in P2.5 for windows. Any other suggestions ? thanks, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-list

  1   2   >