GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Poyamohamadi/Metric_Helper: Metric Helper - Python🐍 CustomTkinter

BranchesTags
Open more actions menu

Latest commit

 

History

13 Commits
13 Commits

Folders and files

NameName
Last commit message
Last commit date
LICENSE.md
LICENSE.md
 
 
README.md
README.md
 
 
demo.gif
demo.gif
 
 
main.py
main.py
 
 

Repository files navigation

Metric Helper

Metric Helper is a simple desktop application built using CustomTkinter that allows users to convert values between different metric prefixes (e.g., femto, nano, kilo, mega, etc.). This tool is designed for ease of use and provides a clean, modern interface.


Table of Contents

  1. Features
  2. Installation
  3. Usage
  4. Structure
  5. Dependencies
  6. Contributing
  7. License

Program Demo

Metric Helper


Features

  • Metric Conversion: Convert values between various metric prefixes ranging from femto (10⁻¹⁵) to peta (10¹⁵).
  • User-Friendly Interface:
    • Input and output fields for entering and displaying values.
    • Dropdown menus (ComboBox) to select metric prefixes for both input and output.
  • Real-Time Conversion: Click the "Convert" button to instantly calculate and display the converted value.
  • Modern Design: Built with CustomTkinter, ensuring a sleek and professional look.

Installation

Prerequisites

  • Python 3.7 or higher installed on your system.
  • Install the required dependencies by running:
pip install customtkinter

Clone the Repository

To get started, clone this repository to your local machine:

git clone https://github.com/Poyamohamadi/metric_helper.git
cd metric_helper

Usage

  1. Run the application by executing the Python script:

    python main.py
  2. Enter a numeric value in the Input Field.

  3. Select the metric prefix for the input value from the Input ComboBox.

  4. Select the desired metric prefix for the output value from the Output ComboBox.

  5. Click the Convert button to see the converted value in the Output Field.


Structure

The code is organized into the following components:

  1. Main Application Class (MyApp):

    • Inherits from customtkinter.CTk to create the main application window.
    • Initializes the GUI elements such as input/output fields, comboboxes, and buttons.
  2. GUI Elements:

    • Input Field: For entering the numerical value.
    • Comboboxes: Dropdown menus for selecting metric prefixes.
    • Convert Button: Triggers the conversion logic.
    • Output Field: Displays the converted value.
  3. Conversion Logic (convert Method):

    • Uses a dictionary (metric_values) to map metric prefixes to their respective powers of 10.
    • Converts the input value to its base unit and then to the desired output prefix.
  4. Main Execution Block:

    • Ensures the application runs only when executed directly.

Dependencies

  • Python: Version 3.6 or higher.
  • customtkinter: A modern GUI library for Python. Install it using:
    pip install customtkinter

Contributing

Contributions are welcome! If you'd like to contribute to this project, please follow these steps:

  1. Fork the repository.
  2. Create a new branch for your feature or bug fix.
  3. Commit your changes and push them to your fork.
  4. Submit a pull request detailing your changes.

Please ensure your code adheres to the existing style and includes appropriate documentation.


License

This project is licensed under the MIT License. See the LICENSE file for more details.


Acknowledgments

  • CustomTkinter Library: Thanks to the developers of customtkinter for creating a modern and customizable GUI toolkit.

  • Python Community: Special thanks to the Python community for their support and resources.


Contact

For questions or feedback, feel free to reach out:

  • GitHub: Poyamohamadi

Thank you for using Metric Helper! 😊

About

Metric Helper - Python🐍 CustomTkinter

Topics

customtkinterpython

Resources

Readme
MIT license
Activity

Stars

1 star

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.