Skip to content

shkoda21/Alarm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Alarm

Alarm clock using Python

In this Python project, I used Python libraries, such as, Tkinter, playsound and datetime. I provided a user interface to set the alarm according to the requirement in 24-hour format and selection a sound.

Defined a function named as alarm() which takes the argument of (set_time). First, it checks than input is correct. Than, It contains a while loop with a Boolean function True which makes the program automatic to work.

Defined another function here named alarm_time() which takes in the user value for setting the alarm in the string format. The same argument of (set_time) as alarm before to execute the while loop which I use while making GUI.

If loop suggests that if the user input time set_time matches with the while loop ongoing time now, the message is showed as ” Wake up” and selected sound is playing.

About

Alarm clock using Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages