set number of digits in round to 2
This commit is contained in:
parent
e8ab128231
commit
d894de31f8
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue