The Number Converter is a simple GUI application built using Python's Tkinter library. It allows users to convert numbers between different bases: Decimal, Binary, Octal, and Hexadecimal.
- Convert numbers from one base to another.
- User-friendly interface with dropdown menus for selecting bases.
- Input and output fields for entering and displaying numbers.
- A 'Calculate' button to perform the conversion.
- Python 3.x
- Tkinter library (usually included with Python)
- Clone the repository:
git clone https://github.com/ritwickrajmakhal/Number-Converter-using-python.git
- Navigate to the project directory:
cd number_converter
- Run the application:
python number_converter.py
- Select the base of the input number from the "From" dropdown menu.
- Select the base to convert to from the "To" dropdown menu.
- Enter the number in the input field.
- Click the "Calculate" button to see the converted number in the output field.
number_converter.py
: Main script containing the GUI code.main.py
: Contains thecalculate
function which performs the number conversion.
- Select "Decimal" from the "From" dropdown menu.
- Select "Binary" from the "To" dropdown menu.
- Enter
10
in the input field. - Click "Calculate" to see
1010
in the output field.
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch
). - Make your changes.
- Commit your changes (
git commit -am 'Add new feature'
). - Push to the branch (
git push origin feature-branch
). - Create a new Pull Request.