Skip to content

Commit

Permalink
fix: change sqrt button appearance
Browse files Browse the repository at this point in the history
  • Loading branch information
gciatto committed Apr 4, 2024
1 parent c5a00cc commit 6f1ae20
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions calculator/ui/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
['4', '5', '6', '*'],
['1', '2', '3', '-'],
['.', '0', '=', '+'],
['(', 'sqrt', '**', ')'],
['(', '', '**', ')'],
]


Expand Down Expand Up @@ -72,7 +72,7 @@ def on_button_press(self, button):
self._calc.open_parenthesis()
case ")":
self._calc.close_parenthesis()
case "sqrt":
case "":
self._calc.square_root()
self._calc.open_parenthesis()
case "**":
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "unibo-dtm-se-calculator"
packages = [
{ include = "calculator" },
]
version = "0.1.1"
version = "0.1.2"
description = "A simple calculator toolkit written in Python, with several UIs. It is part of the Software Engineering course at the University of Bologna."
authors = ["Giovanni Ciatto <[email protected]>"]
license = "Apache 2.0"
Expand Down

0 comments on commit 6f1ae20

Please sign in to comment.