The BMI Calculator is a Python-based desktop application built using the Tkinter library. It calculates the Body Mass Index (BMI) based on your height (in centimeters) and weight (in kilograms) and provides a health assessment with personalized recommendations. This project features a modern, interactive design with dynamic visual feedback, making it both functional and enjoyable to use.
-
🎨 User-Friendly Interface:
- Modern design with vibrant colors and well-organized sections.
- Intuitive sliders for height and weight with real-time updates.
-
📊 Dynamic BMI Calculation:
- Calculates BMI using the formula:
[ \text{BMI} = \frac{\text{Weight (kg)}}{\text{Height (m)}^2} ] - Displays BMI value with corresponding health insights.
- Calculates BMI using the formula:
-
🖼️ Interactive Image Animation:
- A dynamic character image adjusts its size based on the height input.
-
⚕️ Health Classification:
- Provides health advice based on BMI:
- Underweight: Suggestions for gaining healthy weight.
- Normal: Indicates good health.
- Overweight: Advises weight management.
- Obese: Warns about potential health risks.
- Provides health advice based on BMI:
-
🖌️ Beautiful Graphics:
- Custom icons, illustrations, and color themes for an attractive design.
-
🖥️ Cross-Platform Compatibility:
- Runs on all major operating systems with Python and Tkinter installed.
Follow these steps to set up and run the application:
-
Prerequisites:
- Python 3.8 or higher installed.
- Required libraries:
tkinter
,Pillow
.
-
Clone the Repository:
git clone https://github.com/Debkumar-Baksi/bmi-calculator.git cd bmi-calculator
-
Install Dependencies: Install the required libraries:
pip install pillow
- Add Required Files: Place the following image files in the project directory:
- icon.png 🖼️ (App icon)
- top.png 🖼️ (Top banner image)
- box.png 🖼️ (Input box images)
- man.png 🖼️ (Dynamic character image)
- scale.png 🖼️ (Scale illustration)
- Run the Application:
python bmi_calculator.py
- Launch the application to open the BMI Calculator window.
- Use the sliders to adjust your height and weight values, or enter them manually in the input boxes.
- Press the View Report button to calculate your BMI and receive personalized feedback.
- Contributions are welcome!
- Feel free to fork the repository, make enhancements, and submit a pull request.
This project is licensed under the MIT License.