mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Remove the bell from the calculator
Don't ping the terminal bell on every key-press. This might be okay on some systems, on others (we're looking at you Windows) it's a wee bit distracting. See #955.
This commit is contained in:
@@ -93,8 +93,6 @@ class CalculatorApp(App):
|
|||||||
button_id = event.button.id
|
button_id = event.button.id
|
||||||
assert button_id is not None
|
assert button_id is not None
|
||||||
|
|
||||||
self.bell() # Terminal bell
|
|
||||||
|
|
||||||
def do_math() -> None:
|
def do_math() -> None:
|
||||||
"""Does the math: LEFT OPERATOR RIGHT"""
|
"""Does the math: LEFT OPERATOR RIGHT"""
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user