Skip to content

Python Qt6 Calculator (PyCalc)

Phumelela Mdluli edited this page Jan 22, 2024 · 1 revision

Welcome to the PyCal wiki!

I have created quite a few calculator applications in one or two languages. The goal has always been to learn some technology in that language, GUIs in Java, Python, or one of the C language variants (C++, C, C#, or objective-C). It is not that it is a necessary tool in 2024 because just about every electronic device in existence that accepts user input and has a digital display has a calculator application installed in it. Infact, it would be wiser to start to make the application more complex, or as it were to start designing digital graphing calculators (GDCs) rather than a basic calculator. Funny those things are programmable, so in some sense you may also have to build an interpreter or a compiler, and an IDE or basic text editor while you are at it, maybe even design your own simplified programming language to make the application do what you need it to do and nothing more (right).

This wiki is not an alternative to the docs, and if need be it will be expanded with more information over time. For now, it will suffice to make it known that in this repository is a basic mathematical calculator, developed in the python programming language, and using the PyQt version 6 graphical user interface (GUI) package. There are many other GUI options out there for python. Largely, you will want to do the same thing with them. So, if you choose to redo this project for school or as a personal project, feel free to change the GUI package. Note the license of the product you will be using.

Finally, this project has made a minor leap in development in that it employed a design pattern. This is courtesy of the guys at Real Python. They designed their software to follow an MVC-like model. So you may find it interesting to use the code to learn how a Model-View-Controller design pattern can employed/implemented in python. Enjoy!

Clone this wiki locally