Posts

Showing posts from August, 2021

Python Alarm clock

 Source code:  Alarm clock using python. import   winsound from   win10toast   import   ToastNotifier import   tkinter   as   tk root  =  tk . Tk () root . geometry ( "350x400" ) mess_var  =  tk . StringVar () duration_var  =  tk . StringVar () def   submit ( message ,  minutes ,  d ):      global   root      notificator  =  ToastNotifier ()      notificator . show_toast (          "Alarm" ,  f "Alarm for  { minutes } ,minutes.." ,  duration = d )      winsound . Beep ( frequency = 300 ,  duration = 2000 )      notificator . show_toast ( f "Alarm" ,  message ,  duration = 0 )      root . quit () mess_var . set ( "" ) duration_var . set ( "" ) def   call ():      mess ...