add a configurable delay before launching nvda

This commit is contained in:
onyx-and-iris 2023-08-23 16:13:33 +01:00
parent bf66a1d070
commit 4f48b0f01d

View File

@ -1,12 +1,14 @@
import subprocess as sp import subprocess as sp
import time
from .cdll import NVDA_PATH from .cdll import NVDA_PATH
from .window import request_window_object as draw from .window import request_window_object as draw
def launch(): def launch(delay=1):
if NVDA_PATH: if NVDA_PATH:
sp.Popen([NVDA_PATH], shell=True) sp.Popen([NVDA_PATH], shell=True)
time.sleep(delay)
__ALL__ = ["launch", "draw"] __ALL__ = ["launch", "draw"]