From 03c9419f5911b802cdc6f7b40952aea07a3140af Mon Sep 17 00:00:00 2001 From: KmolYuan Date: Tue, 1 Jun 2021 10:39:10 +0800 Subject: [PATCH] Increase the precision on GUI. --- pyslvs_ui/widgets/tables.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyslvs_ui/widgets/tables.py b/pyslvs_ui/widgets/tables.py index 02ce9473c..836325c23 100644 --- a/pyslvs_ui/widgets/tables.py +++ b/pyslvs_ui/widgets/tables.py @@ -392,8 +392,8 @@ def update_select_point(self, points: Optional[List[int]] = None) -> None: continue vpoint0 = self.vpoints[points[i - 1]] vpoint1 = self.vpoints[points[i]] - distances.append(f"{vpoint1.distance(vpoint0):.04}") - angles.append(f"{vpoint0.slope_angle(vpoint1):.04}°") + distances.append(f"{vpoint1.distance(vpoint0):.06}") + angles.append(f"{vpoint0.slope_angle(vpoint1):.06}°") ds_t = ", ".join(distances) as_t = ", ".join(angles) text += f" | {ds_t} | {as_t}"