Skip to content

Latest commit

 

History

History
23 lines (18 loc) · 936 Bytes

File metadata and controls

23 lines (18 loc) · 936 Bytes

Miles to Kilometers Converter

A simple Tkinter-based GUI application that converts miles to kilometers.

Features

  • 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

How It Works

  1. Enter a numeric value in the Miles input field.
  2. Click the Calculate button.
  3. The equivalent value in kilometers is displayed in the result field.
  4. Handles incorrect inputs by displaying "Invalid Input".

Code Structure

  • upper Frame: Contains the input field, labels, and result display.
  • lower Frame: Contains the Calculate button.
  • update_text(): Converts miles to kilometers and updates the result field.

Future Updates

  • Want to make it more than just a mile to kilometer converter but also vice versa and stretch far more than just distance