[Python-checkins] python/dist/src/Lib/test test_winsound.py,1.3,1.4
gvanrossum@users.sourceforge.net
gvanrossum@users.sourceforge.net
Wed, 09 Apr 2003 12:57:10 -0700
Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1:/tmp/cvs-serv11843
Modified Files:
test_winsound.py
Log Message:
Add test for MessageBeep()
Index: test_winsound.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_winsound.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** test_winsound.py 23 Oct 2000 17:22:08 -0000 1.3
--- test_winsound.py 9 Apr 2003 19:57:06 -0000 1.4
***************
*** 1,6 ****
# Ridiculously simple test of the winsound module for Windows.
! import winsound
for i in range(100, 2000, 100):
winsound.Beep(i, 75)
print "Hopefully you heard some sounds increasing in frequency!"
--- 1,18 ----
# Ridiculously simple test of the winsound module for Windows.
! 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)