summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_winsound.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2003-04-09 19:57:06 (GMT)
committerGuido van Rossum <guido@python.org>2003-04-09 19:57:06 (GMT)
commit11d204ca277a3991c429169eff2e9ef0b02b9c35 (patch)
tree21a386993d6bb14d0a3a626c066b70a876c0583d /Lib/test/test_winsound.py
parentf405064ccb344d5ec268dc0a2121ad981506323a (diff)
downloadcpython-11d204ca277a3991c429169eff2e9ef0b02b9c35.zip
cpython-11d204ca277a3991c429169eff2e9ef0b02b9c35.tar.gz
cpython-11d204ca277a3991c429169eff2e9ef0b02b9c35.tar.bz2
Add test for MessageBeep()
Diffstat (limited to 'Lib/test/test_winsound.py')
-rw-r--r--Lib/test/test_winsound.py14
1 files changed, 13 insertions, 1 deletions
diff --git a/Lib/test/test_winsound.py b/Lib/test/test_winsound.py
index 3635281..be0b471 100644
--- a/Lib/test/test_winsound.py
+++ b/Lib/test/test_winsound.py
@@ -1,6 +1,18 @@
# Ridiculously simple test of the winsound module for Windows.
-import winsound
+import winsound, time
for i in range(100, 2000, 100):
winsound.Beep(i, 75)
print "Hopefully you heard some sounds increasing in frequency!"
+winsound.MessageBeep()
+time.sleep(0.5)
+winsound.MessageBeep(winsound.MB_OK)
+time.sleep(0.5)
+winsound.MessageBeep(winsound.MB_ICONASTERISK)
+time.sleep(0.5)
+winsound.MessageBeep(winsound.MB_ICONEXCLAMATION)
+time.sleep(0.5)
+winsound.MessageBeep(winsound.MB_ICONHAND)
+time.sleep(0.5)
+winsound.MessageBeep(winsound.MB_ICONQUESTION)
+time.sleep(0.5)