Skip to main content
replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link
URL Rewriter Bot
URL Rewriter Bot

See: Python Sound ("Bell")Python Sound ("Bell")
This helped me when i wanted to do the same.
All credits go to gbcgbc

Quote:

Have you tried :

import sys sys.stdout.write('\a') sys.stdout.flush() 

That works for me here on Mac OS 10.5

Actually, I think your original attempt works also with a little modification:

print('\a') 

(You just need the single quotes around the character sequence).

See: Python Sound ("Bell")
This helped me when i wanted to do the same.
All credits go to gbc

Quote:

Have you tried :

import sys sys.stdout.write('\a') sys.stdout.flush() 

That works for me here on Mac OS 10.5

Actually, I think your original attempt works also with a little modification:

print('\a') 

(You just need the single quotes around the character sequence).

See: Python Sound ("Bell")
This helped me when i wanted to do the same.
All credits go to gbc

Quote:

Have you tried :

import sys sys.stdout.write('\a') sys.stdout.flush() 

That works for me here on Mac OS 10.5

Actually, I think your original attempt works also with a little modification:

print('\a') 

(You just need the single quotes around the character sequence).

added 4 characters in body
Source Link
Kuchi
  • 4.8k
  • 3
  • 32
  • 37

See: Python Sound ("Bell") 
This helped me when i wanted to do the same. 
All credits go to gbc

Quote:

Have you tried :

import sys sys.stdout.write('\a') sys.stdout.flush() 

That works for me here on Mac OS 10.5

Actually, I think your original attempt works also with a little modification:

print('\a') 

(You just need the single quotes around the character sequence).

See: Python Sound ("Bell") This helped me when i wanted to do the same. All credits go to gbc

Quote:

Have you tried :

import sys sys.stdout.write('\a') sys.stdout.flush() 

That works for me here on Mac OS 10.5

Actually, I think your original attempt works also with a little modification:

print('\a') 

(You just need the single quotes around the character sequence).

See: Python Sound ("Bell") 
This helped me when i wanted to do the same. 
All credits go to gbc

Quote:

Have you tried :

import sys sys.stdout.write('\a') sys.stdout.flush() 

That works for me here on Mac OS 10.5

Actually, I think your original attempt works also with a little modification:

print('\a') 

(You just need the single quotes around the character sequence).

Source Link
Kuchi
  • 4.8k
  • 3
  • 32
  • 37

See: Python Sound ("Bell") This helped me when i wanted to do the same. All credits go to gbc

Quote:

Have you tried :

import sys sys.stdout.write('\a') sys.stdout.flush() 

That works for me here on Mac OS 10.5

Actually, I think your original attempt works also with a little modification:

print('\a') 

(You just need the single quotes around the character sequence).