Skip to content

Commit

Permalink
better formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
C-Loftus committed Jan 29, 2024
1 parent 3e5c2ad commit c01916d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions nvda/nvda.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,19 +67,18 @@ def is_nvda_running() -> bool:
return False

NVDA_RUNNING_CONSTANT = 0
CLIENT_RESPONSE = nvda_client.nvdaController_testIfRunning()
if CLIENT_RESPONSE == NVDA_RUNNING_CONSTANT:
client_response = nvda_client.nvdaController_testIfRunning()
if client_response == NVDA_RUNNING_CONSTANT:
return True
else:
if settings.get("user.addon_debug"):
print(f"NVDA is not running: {CLIENT_RESPONSE}")
print(f"NVDA not running. Client response value: {client_response}")
return False

def nvda_tts(text: str, use_clipboard: bool= False):
'''text to speech with NVDA'''



ctxWindowsNVDARunning = Context()
ctxWindowsNVDARunning.matches = r"""
os: windows
Expand Down

0 comments on commit c01916d

Please sign in to comment.