A simple Pomodoro Timer application built using Python and Tkinter. The Pomodoro Technique is a time management method that uses a timer to break down work into intervals, traditionally 25 minutes in length, separated by short breaks.
- Work Sessions: 25-minute work intervals.
- Short Breaks: 5-minute breaks after each work session.
- Long Breaks: 20-minute break after every four work sessions.
- Visual Timer: Countdown display with a tomato image.
- Session Tracking: Check marks to track the number of completed work sessions.
-
Clone the repository:
git clone https://github.com/yourusername/pomodoro-timer.git cd pomodoro-timer
-
Install dependencies:
- This project requires Python 3 and Tkinter. Tkinter usually comes pre-installed with Python, but if not, you can install it using:
sudo apt-get install python3-tk
-
Run the application:
python pomodoro.py
- Start the Timer: Click the
Start
button to begin the first work session. - Reset the Timer: Click the
Reset
button to stop the current timer and reset the session counter.
The main components of the application are:
- Constants: Define colors, font, and session durations.
- Functions:
reset_timer()
: Resets the timer and session counter.zaman()
: Manages the timer mechanism, switching between work and break periods.count_down()
: Handles the countdown logic and updates the UI accordingly.
- UI Setup: Initializes the main application window, labels, buttons, and canvas.
pomodoro.py
: The main script containing the application logic.tomato.png
: Image file used for the timer background.screenshot.png
: Screenshot of the application (to be added for the README).
Contributions are welcome! Please feel free to submit a Pull Request.
Happy time managing!