Alarm Clock With GUI - Python
Alarm App - A user-friendly Python app with Tkinter & pygame. Set personalized alarms with custom sounds for timely reminders.
Alarm App
This is a simple alarm application built using Python and Tkinter, which allows you to set an alarm and be reminded at the specified time with a sound. The application provides a graphical user interface (GUI) where you can select the hour, minute, second, and period (AM/PM) to set the alarm. It also gives you the option to activate and deactivate the alarm as needed.
Prerequisites
Before running the application, you need to make sure you have the following installed on your system:
- Python 3.x
- Tkinter (usually comes with Python by default)
- pygame library: You can install it using
pip install pygame. - PIL (Python Imaging Library) library: You can install it using
pip install pillow.
How to Run
- Clone or download the project files from the repository.
- Ensure you have all the prerequisites installed on your system.
- Place the
icon.pngfile in the same directory as the Python script. This image will be used as the application icon. - Place the
song.mp3file in the same directory as the Python script. This audio file will be played when the alarm is triggered. - Open a terminal or command prompt and navigate to the directory containing the script and the required files.
- Run the Python script using the command:
python alarm_app.py.
Using the Alarm App
- When you run the application, a graphical window will open, displaying the alarm setting options.
- Set the alarm time by selecting the hour, minute, second, and period (AM/PM) using the drop-down menus.
- Click the "Activate" radio button to activate the alarm. The alarm will be triggered when the current time matches the set alarm time.
- Once the alarm is activated, you can click the "Deactivate" radio button to stop the alarm sound.
- When the alarm is triggered, a sound will be played using the
song.mp3file, alerting you that it's time to take a break or perform the designated task.
Note
- Make sure to have the
song.mp3file present in the same directory as the script, containing the audio you want to play as the alarm sound. - The alarm will keep checking the current time every second to see if it matches the set alarm time. If they match, the alarm sound will be played.
Enjoy your alarm app! Feel free to modify, enhance, or customize it as per your requirements.
Project Files
/
Loading...
| .. | ||
| This directory is empty. | ||