Shortlife Clock is a Python application that calculates life expectancy based on user input and provides health tips and motivational quotes. The application features a user-friendly interface built with PyQt5 and offers a range of customization options to enhance the user experience.
-
Life Expectancy Calculation:
- Calculate life percentage used based on age, gender, and continent.
- Display detailed statistics, including days, weeks, months, and years remaining.
-
Customizable Health Tips and Motivational Quotes:
- Add, remove, and manage health tips and motivational quotes.
- Personalized tips and quotes make the app more engaging and relevant.
-
Daily Health Tips:
- Receive daily health tips to encourage a healthier lifestyle.
-
Countdown Timer:
- A real-time countdown timer displays the remaining time in days, hours, minutes, and seconds.
-
Dark/Light Mode:
- Toggle between dark and light mode for a comfortable viewing experience.
-
Export Data:
- Export life statistics (life percentage, days lived, remaining days) to a CSV file for easy sharing and analysis.
-
User Preferences:
- Save user preferences, including dark mode, health tips, and motivational quotes, for a personalized experience across sessions.
-
Improved UI/UX:
- Tooltips for input fields and buttons.
- Icons for buttons (e.g., dark mode toggle).
- Responsive and visually appealing layout.
- Python 3.x
- PyQt5 (
pip install PyQt5) - dateutil (
pip install python-dateutil)
-
Clone the repository:
git clone https://github.com/DjagbleyEmmanuel/shortlife-clock.git cd shortlife-clock -
Install the required dependencies:
pip install -r requirements.txt
-
Run the application:
python Shortlife_Clock_3.0.py
- Enter your age manually or select your birthdate.
- Choose your gender and continent.
- Click Calculate to see your life percentage, days lived, and remaining days.
- Toggle Dark/Light Mode for a comfortable viewing experience.
- Use the Manage Health Tips and Manage Motivational Quotes buttons to customize the app.
- Export your life statistics to a CSV file using the Export Data button.
Example screenshot of the Shortlife Clock application.
Contributions are welcome! If you have suggestions, bug reports, or feature requests, please:
- Submit an issue on GitHub.
- Fork the repository and create a pull request with your changes.
Please ensure your code follows the project's coding standards and includes appropriate documentation.
- Thanks to the PyQt5 community for providing a powerful framework for building desktop applications.
- Inspired by the concept of life expectancy calculators and productivity tools.
