Giter Site home page Giter Site logo

rihenperry / linear-length-converter Goto Github PK

View Code? Open in Web Editor NEW
1.0 0.0 0.0 297 KB

a simple yet useful 2-way, US/UK measuring units linear length calculator

License: GNU General Public License v3.0

Python 100.00%
python3 gif lo-fi ui prototype sketch tkinter-gui

linear-length-converter's Introduction

1. Background

  • A standalone application which runs on a Laptop/Desktop computer. The application is build using the lightweight GUI library ‘tkinter’ belonging to python programming language.
  • This application will serve users who want to get acquainted with yet another measurement system used for measuring 1 dimension quantity - length, than they are already used to in their daily lives.
  • Foreign visitors who are unfamiliar with measurements used to measure quantity in foreign country.
  • The main function of this application is that it calculates and converts distance/length measured between two fixed points from one system of unit to another and vice versa. So, more specifically, this application allows the user to convert units used to measure length from US/Imperial system to Metric system.

Coming on the requirement side,

  • The US/Imperial units of measurement used to measure a linear dimension include inches, feet, yards, and miles. While the Metric system includes meter, centimeter, millimeter, and kilometer.
  • The application should accept Integers(-ve and +ve) for both systems of measurements and allow 4 digits after decimal.
  • GUIs are made up of frames which represent a window on screen, Frames hold components/widgets. For this application, there will be 2 drop down buttons(combobox, in case of tkinter), 2 textboxes, 2 labels for indicating the type of measurements above the respective combobox and finally application title will go on window status bar.
  • The layout manager(tkinter geometric manager) will be used to control size and placement of widgets on the frame. So that all widget within the frame appear aligned.
  • Each of the 2 combobox will hold a type of measurement unit.
  • The text entry and combobox widgets should listen for user events for taking appropriate action.
  • Comboxbox will listen for select option,
  • The text entry will listen keypress events.
  • When the appropriate event is fired and the callback is called, application should read the entry from textfield, perform conversions, calculations under the hood and produce out into its adjacent text entry widget.

2. Quick lo-fi prototypes

3. Bi-directional length converter in action

3. Installation & Running the app.

On terminal,

pip3 install tkinter
python3 length_converter.py

linear-length-converter's People

Contributors

rihenperry avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.