83% found this document useful (6 votes)
9K views

Alarm Clock With GUI

This document outlines a proposed microproject to create an alarm clock application with a graphical user interface (GUI) using Python. The objectives are to implement an alarm clock that uses Python libraries like datetime and tkinter to set and display the current time and date. Tkinter will be used to create the GUI interface, allowing the user to set the alarm time. When the set alarm time matches the current time, a sound will play as an alarm. The document details the methodology, including importing necessary libraries, defining functions to set and check the alarm time, and creating the GUI elements like entries and buttons. It also includes an action plan with tasks, timelines and assigned team members.

Uploaded by

Rahul B. Fere
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
83% found this document useful (6 votes)
9K views

Alarm Clock With GUI

This document outlines a proposed microproject to create an alarm clock application with a graphical user interface (GUI) using Python. The objectives are to implement an alarm clock that uses Python libraries like datetime and tkinter to set and display the current time and date. Tkinter will be used to create the GUI interface, allowing the user to set the alarm time. When the set alarm time matches the current time, a sound will play as an alarm. The document details the methodology, including importing necessary libraries, defining functions to set and check the alarm time, and creating the GUI elements like entries and buttons. It also includes an action plan with tasks, timelines and assigned team members.

Uploaded by

Rahul B. Fere
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 10

Part A Plan

Alarm Clock with GUI

1.Brief Description :-

This project requires good knowledge of Python and GUI (Graphic


User Interface). Python when combined with Tkinter provides a fast
and easy way to create GUI applications. Tkinter provides a powerful
object-oriented interface to the Tk GUI toolkit. All the modules used
need not be downloaded beforehand like the other libraries like
NumPy, thus this project will be user friendly and accessible in any
virtual environment used for python programming.

2.Aims of the micro project :-

The objective of this project Alarm Clock Using Python is to implement an


alarm clock using Python. Python consists of very useful libraries such as
datetime and tkinter which help us to build project using the current date and
time. Apart from this, they provide a user interface to set the alarm according
to the requirement in 24-hour format.

3.Course Outcomes Adderssed:-

1.Tkinter module belongs to a standard library of GUI in Python. It helps us


to create a dialog box with any information that we want to provide or get
from the users.
2.Datetime and time modules in python help us to work with the dates and
time of the current day when the user is operating python and to
manipulate it too.
3.Winsound module provides access to the basic sound playing machinery
provided by Windows platforms. This is useful to generate the sound
immediately when a function is called.

4.Proposed Methodology:-

 Define a function named as alarm() which takes the argument of


(set_alarm_timer).It contains a while loop with a Boolean function True
which makes the program automatic to work.
 time.sleep(1) halts the execution of the further commands given until
we get the time value from the user later in the code and returns the
background thread of the clock time going on at a regular interval.
 Get the current time using current_time which takes the argument
of datetime.datetime.now().
 now is used to print the time and date is used to print the current date
by string conversion using strftime().
 Define another function here named actual_time() which takes in the
user value for setting the alarm in the string format. The same argument
of (set_alarm_timer) as alarm before to execute the while loop which we
further use while making GUI.
 If loop suggests that if the user input time set_alarm_timer matches
with the while loop ongoing time now, the message is printed as” Time to
Wake up”.
 winsound.SND_ASYNC plays the system generated sound as soon the
condition satisfies, acting as a reminder for the alarm clock.
5.Action plan :

Sr. Details of Planned Name of Responsible


Planned Finish Date
No. Activity start Date Team Members
Gathering
The Raw
24.12.2018
1. Information
3:00 to 5:00
Related To
Project
07.01.2019
2. Analysis
3:00 to 5:00
Kumbhar
21.01.2019
3. Designing Vaishnavi.s
3:00 to 5:00
Implement of 04.02.2019
4.
Coding 3:00 to 5:00 Shinde Vaishnavi.B
Testing of 15.02.2019
5.
Project 3:00 to 5:00 Joshi Shivani.S
Deployment 25.02.2019
6.
of Module 3:00 to 5:00
Prepare Out 08.03.2019 Kedase Swati
7.
Put 3:00 to 5:00

Prepare
20.03.2019
8. Report on
3:00 to 5:00
Micro Project
 Resources used:-

Sr.n Name of Specification Quantity Remark


o resources
1. Pc Processor Intel core 1
2. Software  Pycharm IDE 1

3. Internet Google 1

 Name of Team Members:-

1. Kumbhar Vaishnavi Shivanand


2. Joshi Shivani Suresh
3. Shinde Vaishnavi Baliram
4. Kedase Swati
Part B- Outcomes after Execution

1.Rationale:- Alarm Clock with GUI

2.Brief Description :

This project requires good knowledge of Python and GUI (Graphic


User Interface). Python when combined with Tkinter provides a fast
and easy way to create GUI applications. Tkinter provides a powerful
object-oriented interface to the Tk GUI toolkit. All the modules used
need not be downloaded beforehand like the other libraries like
NumPy, thus this project will be user friendly and accessible in any
virtual environment used for python programming.

3.Aims of the micro project:-


The objective of this project Alarm Clock Using Python is to implement an
alarm clock using Python. Python consists of very useful libraries such as
datetime and tkinter which help us to build project using the current date and
time. Apart from this, they provide a user interface to set the alarm according
to the requirement in 24-hour format.

4.Course Outcomes Achieved:-

1.Tkinter module belongs to a standard library of GUI in Python. It helps us


to create a dialog box with any information that we want to provide or get
from the users.
2.Datetime and time modules in python help us to work with the dates and
time of the current day when the user is operating python and to
manipulate it too.
3.Winsound module provides access to the basic sound playing machinery
provided by Windows platforms. This is useful to generate the sound
immediately when a function is called.

5.Actual Methodology Followed:-

(Program code used for conduction micro project if any with out put)

#Importing all the necessary libraries to form the alarm clock:


from tkinter import *
tkinter import
import datetime
import time
import 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("sound.mp3",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("DataFlair 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)

# The Variables we require to set the alarm(initialization):


hour = StringVar()
min = StringVar()
sec = StringVar()

#Time required to set the alarm clock:


hourTime= Entry(clock,textvariable = hour,bg = "pink",width =
15).place(x=110,y=30)
minTime= Entry(clock,textvariable = min,bg = "pink",width =
15).place(x=150,y=30)
secTime = Entry(clock,textvariable = sec,bg = "pink",width =
15).place(x=200,y=30)

#To take the time input by user:


submit = Button(clock,text = "Set Alarm",fg="red",width =
10,command = actual_time).place(x =110,y=70)

clock.mainloop()
#Execution of the window.
6.Actual Resources used:-

Sr.no Name of resources Specification Quantity Remark

4. Pc I3processor,4Gb , 1
500GB
5. Software Pycharm IDE 1

6. Internet Google 1

7.Action plan :-

Name of
Sr. Planned Planned Responsible
Details of Activity
No. start Date Finish Date Team
Members
Gathering The Raw
1. Information Related
To Project
2. Analysis Kumbhar
vaishnavi.S
3. Designing
4. Implement of Coding Shinde
Vaishnavi.B
5. Testing of Project
6. Deployment of Module Joshi Shivani.S
Swati Kedase.
7. Prepare Out Put
Prepare Report on
8.
Micro Project
 Outputs of the Micro-project:-
7.Skill Developed / Learning outcome of this Micro-Project:-
 We learn that how to make the project of the menu driven programming in C

 We learn that how to make the coding and programming.

 We learn that how to edit the program and how to do the presentation for the project.

 We learn that how to make the report for project.

 This all things we learn from the project.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy