This repository contains a basic Body Mass Index (BMI) calculator built using Python and the tkinter
library for a user-friendly graphical interface (GUI).
- Calculates BMI based on weight (kg) and height (cm).
- Displays the calculated BMI value.
- Provides a simple interface for user interaction.
Prerequisites:
- Python 3 (Download from https://www.python.org/downloads/)
Instructions:
-
Clone this repository:
[gh repo clone Drjaickal/BMI-CALCULATOR-Oasis-Infobyte](https://github.com/Drjaickal/BMI-CALCULATOR-Oasis-Infobyte.git)
-
Navigate to the project directory:
cd python-bmi-calculator
-
Run the script:
python bmi_calculator.py
The script launches a window with labels for weight and height, entry fields for input, and a button to calculate the BMI.
- Enter your weight (in kilograms) in the weight entry field.
- Enter your height (in centimeters) in the height entry field.
- Click the "Calculate BMI" button.
The application displays the calculated BMI value below the button.
The project includes a single Python file (bmi_calculator.py
) that contains:
- Functions for user input handling, BMI calculation, and result display.
- Code to create the GUI elements using
tkinter
.
Feel free to contribute to this project! You can:
- Improve the user interface by adding visuals or different layouts.
- Implement error handling for invalid user input.
- Translate the application to other languages.
Before submitting a pull request:
- Fork the repository.
- Create a new branch for your changes.
- Make your modifications and commit them to your branch.
- Open a pull request from your branch to the main branch of the upstream repository.
This is a basic example, and you can expand it further based on your needs.