On this page
winsound.MessageBeep
Prev: winsound.Beep | Up: winsound | Next: winsound.PlaySound
Rel: winsound.Beep, winsound.PlaySound
Ref: docs.python.org — winsound.MessageBeep
Tags: #public #python3 #stdlib #winsound
Import
import winsound
from winsound import MessageBeep
Signature & Overview
winsound.MessageBeep(type=MB_OK)
Call the underlying MessageBeep function from the Platform API.
Usage
import sys
# Windows-only: plays a standard Windows system notification sound
assert sys.platform != 'win32' or True
Gotchas
- Windows-only: Non-blocking system chime.
REPL Inspect
from winsound import MessageBeep
help(MessageBeep)
Linked from
Related notes
- tuts/python3/stdlib_module/winsound/Beep Linked here; links to this page; shared tags: #stdlib, #winsound
- tuts/python3/stdlib_module/winsound/PlaySound Linked here; links to this page; shared tags: #stdlib, #winsound
- tuts/python3/stdlib_module/winsound Linked here; links to this page; shared tags: #stdlib
- tuts/c/stdlib shared tags: #stdlib
- tuts/c/stdlib/assert shared tags: #stdlib
- tuts/c/stdlib/assert/assert shared tags: #stdlib
- tuts/c/stdlib/assert/static_assert shared tags: #stdlib
- tuts/c/stdlib/ctype shared tags: #stdlib
- tuts/c/stdlib/ctype/isalpha shared tags: #stdlib
- tuts/c/stdlib/ctype/isdigit shared tags: #stdlib