From 2b4394b09ae843da8a74510e391da460b4cb350e Mon Sep 17 00:00:00 2001 From: Daniel Weschke Date: Sat, 20 Jul 2024 16:06:28 +0200 Subject: [PATCH] update doc --- README.md | 2 +- src/engineering/area.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 5bea62f..fd6671e 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ commands - `eng-plate`: central deflection and min. thickness of a circular plate - `eng-tube`: bubkling stress of a tube -libs +lib functions - `engineering.area.area(vertices)` - `engineering.awg.diameter(number)` - `engineering.awg.area(number)` diff --git a/src/engineering/area.py b/src/engineering/area.py index b4f41a1..f3883f4 100755 --- a/src/engineering/area.py +++ b/src/engineering/area.py @@ -1,9 +1,9 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- """\ -Determine the area of a simple polygon +Determine the area of a simple polygon. """ -from builtins import input +import builtins import sys import re @@ -78,7 +78,7 @@ def main(): choice = 'q' try: while choice not in ('q', 'quit', 'exit'): - choice = input(" %i Points, area: " % len(points) + + choice = builtins.input(" %i Points, area: " % len(points) + info("%.2f ") % a + "> " + csi(Style.NOBOLD, FGColor.COMMAND)) sys.stdout.write(reset()) choice = " ".join(choice.split()) # replace multiple spaces with single one