mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
no async
This commit is contained in:
@@ -94,7 +94,7 @@ class Calculator(GridView):
|
||||
# This allows us to write self.display = "100" to update the display
|
||||
self.numbers.value = value
|
||||
|
||||
async def compute_show_ac(self) -> bool:
|
||||
def compute_show_ac(self) -> bool:
|
||||
"""Compute show_ac reactive value."""
|
||||
# Condition to show AC button over C
|
||||
return self.value in ("", "0") and self.display == "0"
|
||||
|
||||
Reference in New Issue
Block a user