https://github.com/qtle3/temp_converter
This repository contains a collection of Python scripts designed to perform temperature conversions between Celsius and Fahrenheit using both command-line and graphical interfaces. The main script, temp_convert_gui.py, provides a user-friendly graphical interface for conversions, while the other scripts offer command-line functionality.
https://github.com/qtle3/temp_converter
error-handling event-handling graphic-user-interface user-input
Last synced: about 1 year ago
JSON representation
This repository contains a collection of Python scripts designed to perform temperature conversions between Celsius and Fahrenheit using both command-line and graphical interfaces. The main script, temp_convert_gui.py, provides a user-friendly graphical interface for conversions, while the other scripts offer command-line functionality.
- Host: GitHub
- URL: https://github.com/qtle3/temp_converter
- Owner: qtle3
- Created: 2024-08-03T23:01:13.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-06T01:59:44.000Z (almost 2 years ago)
- Last Synced: 2025-02-14T16:01:50.997Z (over 1 year ago)
- Topics: error-handling, event-handling, graphic-user-interface, user-input
- Language: Python
- Homepage:
- Size: 22.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Temperature Conversion Project
This repository contains Python scripts for converting temperatures between Celsius and Fahrenheit. The project includes both command-line and graphical interfaces.
## Overview
- **Command-Line Interface (`temp_convert.py`):**
- Converts temperatures between Celsius and Fahrenheit.
- Supports both conversion directions with interactive prompts.
- **Graphical User Interface (`temp_convert_gui.py`):**
- Provides a GUI for converting Celsius to Fahrenheit using the `graphics.py` module.
- Features input fields, buttons, and real-time feedback for conversions.
- Includes "Convert It" and "Quit" buttons for user interaction.
- **Custom Graphics Library (`graphics.py`):**
- Used to create the GUI with basic drawing functions for windows, text, and shapes.
## Getting Started
### Prerequisites
- **Python**: Ensure Python is installed on your system.
- **graphics.py**: Include this file in the same directory as the scripts.
### Running the GUI Application
1. Clone the repository:
```bash
git clone https://github.com/qtlee/temp_converter.git
cd temp_converter