From cf1e4e96d0f868c2428b8532e11191984c89da4a Mon Sep 17 00:00:00 2001 From: sebe324 Date: Fri, 22 Sep 2023 19:26:10 +0200 Subject: [PATCH] small hotfix --- src/python/CalculatorUI.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/python/CalculatorUI.py b/src/python/CalculatorUI.py index 5a825c7..f6faea1 100644 --- a/src/python/CalculatorUI.py +++ b/src/python/CalculatorUI.py @@ -105,7 +105,7 @@ index = 0 else: tmp_equation = equation.replace('|','') - tmp_equation=equation.replace('√','@') + tmp_equation = tmp_equation.replace('√','@') convertedEquation = mml.convertToRPN(tmp_equation) equation = str(mml.calculateRPN(convertedEquation))+"|" index = len(equation) @@ -116,7 +116,7 @@ window['output'].update(equation) if (event in calculatorButtons): tmp_equation=equation.replace('|','') - tmp_equation=equation.replace('√','@') + tmp_equation=tmp_equation.replace('√','@') tmp = mml.convertToRPN(tmp_equation) x = str(mml.calculateRPN(tmp)) window['current_output'].update(x)