On this page
  1. winsound.MessageBeep
  2. Import
  3. Signature & Overview
  4. Usage
  5. Gotchas
  6. REPL Inspect

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

REPL Inspect

from winsound import MessageBeep
help(MessageBeep)

Linked from

Related notes