Skip to content

victoriajury/pyqt_desktop_calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pyqt_desktop_calculator

Project to familiarise myself with PyQt.

I followed the tutorial at https://realpython.com/python-pyqt-gui-calculator/ to create a simple calculator.

Requirements

  • Python 3.7+
  • pip
  • pipenv

Installation

To install dependencies from Pipfile, run:

pipenv install

Usage

To run the Hello World example, enter pipenv shell and run:

python hello.py

Hello, World

To run the calculator, enter pipenv shell and run:

python pycalc.py

pycalc

TODO

  • Add more calculator functionality i.e. pi, sqrt, etc.
  • Remove eval from evaluateExpression() function as this is insecure
  • Make exception handling more robust
  • Add tests

About

Python desktop calculator app using PyQt

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages