This is a lightweight yet functional alarm clock desktop application built with Python using Tkinter for the graphical interface and Pygame to play a custom alarm sound.
- Set alarm time with dropdowns (hour, minute, AM/PM)
- Cancels alarm before it rings
- Plays custom alarm sound (
MyAlarm.wav) in a loop - Stop button to turn off the ringing
- Intuitive and clean UI
-
Install dependencies:
pip install pygame
-
Run the script:
python alarm_clock.py
- Python 3.6+
pygametkinter(comes pre-installed with Python)- An audio file named
MyAlarm.wavin the same directory
python-alarm-clock/ ├── alarm_clock.py # Main app script ├── MyAlarm.wav # Custom alarm sound (included) └── README.md # This file