From d894de31f824478dd5f6db4fd413a99ed92cb24e Mon Sep 17 00:00:00 2001 From: Pavel Date: Fri, 9 Oct 2020 16:27:46 +0200 Subject: [PATCH] set number of digits in round to 2 --- cavegui.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cavegui.py b/cavegui.py index a8eb092..61c6e7c 100644 --- a/cavegui.py +++ b/cavegui.py @@ -48,12 +48,12 @@ def previous(event): def left(event, step): global plan, index - plan[index] = (round(plan[index][0] + step, 3), plan[index][1], plan[index][2]) + plan[index] = (round(plan[index][0] + step, 2), plan[index][1], plan[index][2]) voler_selon(plan) def right(event, step): global plan, index - plan[index] = (round(plan[index][0] - step, 3), plan[index][1], plan[index][2]) + plan[index] = (round(plan[index][0] - step, 2), plan[index][1], plan[index][2]) voler_selon(plan) def up(event):