System Beep?

Terry Reedy tjreedy at udel.edu
Sat Mar 9 00:53:08 EST 2019


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




More information about the Python-list mailing list