8000 GitHub - Vasilakious/The-Pythonologists: Scripting a calculator with the bois
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Vasilakious/The-Pythonologists

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 

Repository files navigation

The-Pythonologists

No .exe file but the code is one .py file

Scripting a calculator with the bois ... YES.

  • Βασίλειος Κατωτομιχελάκης Π2020132
  • Χαράλαμπος Μακρυλάκης Π2019214
  • Αθανάσιος Καλαμάτας Π2020150
  • Παναγιώτης Καράτζιας Π2020142

Customisable Greek Calculator Application

This Python application is designed to provide a simple and user-friendly calculator in Greek. It supports both basic and complex calculations while offering a customizable user interface. The calculator is built using a graphical user interface (GUI), enhancing usability and accessibility for users.

Table of Contents

Overview

Our goal was to create a Greek-language calculator that is not only easy to use but also provides support for both simple and complex calculations. To achieve this, we built the application using a Graphical User Interface (GUI) with Python.

Tech Stack

  • Python: Core programming language.
  • Qt for Python: GUI framework used to design the layout with buttons, text fields, and a menu bar. It also allows customization of colors.
  • numexpr & math libraries: Used for arithmetic calculations.
  • datetime module: Used for age calculation.

Main Features

Standard and Scientific Calculator

The application provides two main modes:

  • Standard
    A basic calculator for simple arithmetic operations.

    image

  • Scientific
    A scientific calculator that supports complex mathematical functions.

    image

UI of all the Modes

  • Modes List

image

Body Mass Index (BMI) Calculator

This feature allows users to calculate their BMI based on their weight and height, providing insights into their physical health.

image

Age Calculator

The age calculator lets users compute their exact age in years, months, and days based on their input.

image

Unit Conversions

Various unit conversion options are available, such as converting between MegaBytes (MB) and TeraBytes (TB).

image

Discount Calculator

This feature allows users to calculate the final price after a discount is applied by entering the discount percentage and the original price.

image

UI Color Customization

The user can modify the application's theme and colors, making the interface more personalized and visually appealing.

image

Code Analysis

Layout Setup

The code arranges the Qt objects (buttons, text fields, etc.) within the layout, ensuring they appear correctly in the application window.

Button Logic Handling

Each arithmetic button corresponds to a number, and when pressed, it displays the appropriate number in the display box. This logic is handled using separate functions and boolean variables that manage the button interactions.

Example of Age Calculation Function

The calculate_age function takes the user's input in the form of day/month/year (D/M/Y), performs the necessary calculations, and converts the result into a string, which is then displayed in the symbol_box_age.

About

Scripting a calculator with the bois

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%
0