A simple Tkinter-based GUI application that converts miles to kilometers.
- User-friendly interface using Tkinter
- Allows users to input miles and get the equivalent value in kilometers
- Displays results in a disabled text box to prevent accidental edits
- Error handling for invalid inputs
- Enter a numeric value in the
Milesinput field. - Click the
Calculatebutton. - The equivalent value in kilometers is displayed in the result field.
- Handles incorrect inputs by displaying "Invalid Input".
upperFrame: Contains the input field, labels, and result display.lowerFrame: Contains theCalculatebutton.update_text(): Converts miles to kilometers and updates the result field.
- Want to make it more than just a mile to kilometer converter but also vice versa and stretch far more than just distance