CSE Python Assessment Report
CSE Python Assessment Report
Group Report
(List all the modules/operations for project application and give detailed note for
each operations)
The project utilizes various aspects such as functions, GUI( Graphical User
Interface)
Modules:
• Tkinter
• Datetime
• Winsound
def alarm(set_alarm_timer):
while True:
time.sleep(1)
current_time = datetime.datetime.now()
now = current_time.strftime("%H:%M:%S")
date = current_time.strftime("%d/%m/%Y")
print("The Set Date is:",date)
print(now)
if now == set_alarm_timer:
print("Time to Wake up")
winsound.PlaySound("Alarm.wav",winsound.SND_ASYNC)
break
def actual_time():
set_alarm_timer = f"{hour.get()}:{min.get()}:{sec.get()}"
alarm(set_alarm_timer)
clock = Tk()
clock.title("Alarm Clock")
clock.geometry("400x200")
time_format=Label(clock, text= "Enter time in 24 hour format!",
fg="red",bg="black",font="Arial").place(x=60,y=120)
addTime = Label(clock,text = "Hour Min Sec",font=60).place(x = 110)
setYourAlarm = Label(clock,text = "When to wake you up",fg="blue",relief =
"solid",font=("Helevetica",7,"bold")).place(x=0, y=29)
clock.mainloop()
#Execution of the window
VI. Implementation Screenshots