Calcmemopy 1.0 – Calculator that saves data in html

This free app let you do some math operations and also gives you the chance to save them easily on a text file that you can save as a txt, a md and an html file. You can use markdow (# Title is equivalent to <h1>Title</h1>) for example to save then the text into html pressing ctrl + b. With ctrl + s you save it as a text.

This time I added to my CalculatorMemo 1.0 app these features:

  • save file to md and html
  • use markdown into text
  • advise for error in case you put a 0 before a number (not allowed)

Here is the code that I obtained mixing the md_html.py script that I showed you in this post, with the code for the calculator memo.

From this mix, I can not show the operation in a text box, modify the text, use markdown into the text and create an html file pressing control + b. I think it’s handy for many situations that I’ll let you imagine (a sketch, an html tutorial for your web page, a presentation in html… name it). Thinking of wich, I am thinking to make a new crossover among script, using that code I made to create slides in html with Python. This will be done in the 1.1 version of this app. Until then, this is the code and here you can find the repository.

You may need to install:

  • pip install markdown jinja2

The video about CalculatorMemo 1.0

I made some changes in the code, eliminating the unuseful argparse use in the part of the markdown code, because I do not use the command line to make this. It also did not close the md file that was created, so I changed the code, making it better and simpler. In the video you will see the old code.

Tkinter test for students

Tkinter articles