Skip to content

AlizDevelop/Alarm-clock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

⏰ Alarm Clock GUI with Python

A simple Alarm Clock application built with Python using Tkinter.
This project provides a graphical interface where users can set a specific time, and when the current time matches the selected time, an alarm sound will play.

📌 Features

  • 🕒 Set custom alarm time (Hour, Minute, Second)
  • 🖥️ Simple graphical user interface using Tkinter
  • 🔊 Plays sound when the alarm time is reached
  • 🧵 Uses Threading to keep the GUI responsive
  • ⏱️ Real-time clock checking

🛠️ Technologies Used

  • Python 3
  • Tkinter (GUI)
  • Datetime module
  • Time module
  • Threading
  • Winsound

📂 Project Structure

Alarm-Clock/ │ ├── alarm_clock.py ├── sound.wav └── README.md

⚙️ Installation

1. Clone the repository

bash git clone https://github.com/your-username/Alarm-Clock.git

2. Navigate to the project folder

bash cd Alarm-Clock

3. Run the program

bash python alarm_clock.py

▶️ How To Use

  1. Run the application.
  2. Select the desired:
    • Hour
    • Minute
    • Second
  3. Click on Set Alarm.
  4. Wait until the selected time.
  5. The alarm sound will play automatically.

📸 Screenshot

Alarm Clock Screenshot

🔊 Adding Custom Alarm Sound

Replace the sound.wav file with your own .wav audio file.

Make sure the filename remains:

sound.wav

or update this line in the code:

python winsound.PlaySound("sound.wav", winsound.SND_ASYNC)

⚠️ Requirements

  • Windows OS (because the project uses winsound)
  • Python 3.x

🚀 Future Improvements

  • Add stop alarm button
  • Add multiple alarms
  • Add digital clock display
  • Add modern UI design
  • Support for different operating systems

👨‍💻 Author

Your Name

📄 License

This project is open-source and available under the MIT License.

About

No description, website, or topics provided.

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages