Calc App is a sample calculator implemented using Python 3 and Flet framework which enables us to build UI for the program with Flet controls which are based on Flutter by Google. To write a Flet web app we don't need to know HTML, CSS or JavaScript, but we do need a basic knowledge of Python and object-oriented programming.
For Calc App to work, we need to install Python 3.7 or above. Then we need to install the flet
module first:
$ python -m venv venv
$ source venv/bin/activate
$ python -m pip install flet
After these commands have been installed, we can run Calc App as described in the next section
To run Calc App from you system's command line or terminal, execute the following command:
$ python calc.py
To use Calc App, just enter a valid math expression using your mouse and then press Enter
or click the button, =
, to get the result: