Posted By

Ghsimpa on 03/19/16


Tagged

alarmwavpython


Versions (?)

Alarm


 / Published in: Python
 

Simple Alarm

  1. import os
  2. import time
  3. sleept = input (" second :")
  4.  
  5. time.sleep (sleept)
  6. os.system("start C:/Users/user1/Desktop/test.wav")#wav file use (/)
  7.  
  8. z = raw_input("For ZzZz type z : ")
  9. if z == "z":
  10. time.sleep (5)
  11. os.system("start C:/Users/user1/Desktop/test.wav")#copy
  12. else :
  13. print "Worng ! (r,)"
  14.  
  15. print "finish"

Report this snippet  

You need to login to post a comment.