GithubHelp home page GithubHelp logo

gui_calculator's Introduction

gui_caculator

This program is GUI calculator

Getting Started

  • Plz download .ui file and .py file then execute this python program :D
  • It will show you a calculator

Prerequisites

To execute the calculator, (PyQt5, numpy) must be installed.

If you are not Anaconda Environment you should below command

  • pip install --upgrade pip
  • pip install pyqt5
  • pip install pyqt5-tools
  • pip install numpy

OR you can simply prepare your environment with

pip install -r requirements.txt

OR if your python environment is Anaconda Execute below command

  • conda update -n base conda
  • conda update --all
  • conda install -c anaconda pyqt
  • conda install -c anaconda numpy

On anaconda prompt you can launch qt designer

  • Just type with "designer"

If your environment doesn't use anaconda you can download qt designer below link under "Built With"

Built With

  • PyQt5 - The GUI framework used (calculator_main.py)
  • PyQt5 designer - To create UI (calculator2.ui)
  • numpy - for Arithmetical calculate (calculator_main.py)

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Authors

  • LWH - Initial work - LWH

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

  • plz tell me if any trouble occured with executing this calculator

gui_calculator's People

Contributors

64db0y avatar

Watchers

 avatar

Forkers

3rdpix

gui_calculator's Issues

계산기 기능 추가 - 분수, 제곱, 루트 추가 (Numpy)

Is your feature request related to a problem? Please describe.
Numpy를 활용하여 분수, 제곱, 루트 기능을 추가했으면 합니다.

Describe the solution you'd like
기존의 계산기에 제곱근 기능을 추가합니다.

Describe alternatives you've considered
없음

Additional context
오픈소스 프로젝트

Related sub-issues

계산기 기능 추가 - 기본적인 연산 기능 추가

Is your feature request related to a problem? Please describe.

  1. +, -, x, /
  2. 소수점 기능 추가
  3. = 기능 추가

Describe the solution you'd like
현재 계산기에 부족한 제곱을 구현 합니다.

Describe alternatives you've considered
없음

Additional context
오프소스 프로젝트

Related sub-issues

Secuence is not cleared after operation completed

Describe the bug
When solving an operation and the result is displayed, it is possible to enter new number. These new numbers are appended at the end of the string representing the result and are not treated as new numbers. This causes conflicts after trying to add an operator and calculating new results.

To Reproduce
Steps to reproduce the behavior:

  1. Write a number and calculate any operation
  2. When the result is shown on screen, write new numbers. These numbers will be appended at the end of the shown result
  3. Try to get the result by pressing enter
  4. See error
Traceback (most recent call last):
  File "D:\gui_calculator\calculator_main.py", line 296, in equal
    temp_val1 = str(result)  # Store the result in temp_val1.
                    ^^^^^^
UnboundLocalError: cannot access local variable 'result' where it is not associated with a value

Expected behavior
It should be decided whether after solving an operation the result remains and can be used to work on new operations, or it should be cleared if new numbers are typed.

Pressing an operator before entering numbers shuts down the program.

Describe the bug
If you press an operator before writing any number, it breaks. Output error shown:

Traceback (most recent call last):
  File "D:\gui_calculator\calculator_main.py", line 114, in plus
    if ((exist_text[-1] == "+") | (exist_text[-1] == "-") | (exist_text[-1] == "*") | (exist_text[-1] == "/") | (
         ~~~~~~~~~~^^^^
IndexError: string index out of range

Expected behavior
In Windows' calculator, number 0 is already pre-written. Operator selected applies over that 0. If new operators are chosen, old operator updates while keeping the 0.

계산기 기능 추가하기 - (양수/음수), (입/출력 사이즈 및 글씨체 조정)

Is your feature request related to a problem? Please describe.
마이너스 연산 말고도 바로 음수 혹은 바로 양수로 고칠 수 있게 계산기 기능을 고쳤으면 좋겠어요
계산기 입/출력 공간에 들어가 있는 글씨체가 너무 작고 글꼴도 바꿨으면 좋겠어요

Describe the solution you'd like
계산기 00 버튼 대신 (양수/음수) 버튼 추가 및 기능 추가 요청합니다.
계산기 입/출력 사이즈 및 글씨체를 사용자가 가시적으로 더 보기 쉽게 바꿨으면 좋겠어요

Describe alternatives you've considered

Additional context
Can you make it?

계산기 기능 추가하기

Is your feature request related to a problem? Please describe.
지금 버전의 계산기에서 윈도우 기본 계산기에 있는 기능 추가하기

Describe the solution you'd like
제곱, 제곱근, 역수, 나머지 등과 같은 연산 기능 추가

Describe alternatives you've considered
없음

Additional context
오픈소스 프로젝트 - numpy나 파이썬 기본 기능 활용 가능(exec는 금지)

계산기 UI 수정/개선하기

Is your feature request related to a problem? Please describe.
계산기를 윈도우 기본 계산기처럼 만들기

Describe the solution you'd like
기존의 두가지로 나뉘어진 입력, 출력 받기 용 LineEdit 박스를 통합시키고 각 버튼의 배열을 QGridLayout을 활용하여 배열하여 기존의 QHBoxLayou, QVBoxLayout을 혼용하던걸 대체합니다.

C, CE는 똑같이 동일하게 LineEdit 박스를 클리어하는 기능을 구현하도록 합니다.
Describe alternatives you've considered
없음

Additional context
오픈소스 프로젝트 연습

New Issue

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

계산기 기능 추가 - 퍼센트 구현

Is your feature request related to a problem? Please describe.
계산기 내 %를 구현합니다.

Describe the solution you'd like
기존의 계산기에 백분률 기능을 추가합니다.

Describe alternatives you've considered
없음

Additional context
오픈소스 프로젝트

Related sub-issues

계산기 개선하기

Is your feature request related to a problem? Please describe.
계산기를 윈도우 기본 계산기 스타일로 만들면 좋겠어요

Describe the solution you'd like
계산기 UI 수정 및 기능 추가

Describe alternatives you've considered
없음

Additional context
프로젝트 용도

계산기 기능 추가 - 숫자 입력 출력 창 통합

Is your feature request related to a problem? Please describe.
수식 결과로 나뉘어 있는 숫자 입력 부분을 하나로 통합
Describe the solution you'd like
숫자 입력/표시 부분 하나로 통합

Describe alternatives you've considered
없음

Additional context

오픈소스 프로젝트

Related sub-issues

  • #2 계산 기능 추가

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.