Skip to content

Commit

Permalink
Merge pull request #22 from sebe324/indexUpdate
Browse files Browse the repository at this point in the history
small hotfix
  • Loading branch information
sebe324 committed Sep 22, 2023
2 parents 8b6c0c3 + cf1e4e9 commit 2d6f725
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/python/CalculatorUI.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit 2d6f725

Please sign in to comment.