diff --git a/stubs/PyScreeze/@tests/stubtest_allowlist_linux.txt b/stubs/PyScreeze/@tests/stubtest_allowlist_linux.txt index fa9bd6fa0..fb9d32191 100644 --- a/stubs/PyScreeze/@tests/stubtest_allowlist_linux.txt +++ b/stubs/PyScreeze/@tests/stubtest_allowlist_linux.txt @@ -1,2 +1,4 @@ # temp variable used to define scrotExists by checking if the command "scrot" exists pyscreeze.whichProc +# present but unimplemented +pyscreeze.screenshotWindow diff --git a/stubs/PyScreeze/pyscreeze/__init__.pyi b/stubs/PyScreeze/pyscreeze/__init__.pyi index 5c52490e9..be6db8189 100644 --- a/stubs/PyScreeze/pyscreeze/__init__.pyi +++ b/stubs/PyScreeze/pyscreeze/__init__.pyi @@ -41,7 +41,7 @@ class PyScreezeException(Exception): ... class ImageNotFoundException(PyScreezeException): ... # _locateAll_opencv -def requiresPillow(wrappedFunction: Callable[_P, _R]) -> Callable[_P, _R]: ... +def requiresPyGetWindow(wrappedFunction: Callable[_P, _R]) -> Callable[_P, _R]: ... @overload def locate( needleImage: str | Image.Image | _Mat, @@ -142,6 +142,8 @@ def locateCenterOnScreen( step: int = 1, confidence: None = None, ) -> Point | None: ... +def locateOnScreenNear(image: str | Image.Image | _Mat, x: int, y: int) -> Box: ... +def locateCenterOnScreenNear(image: str | Image.Image | _Mat, x: int, y: int) -> Point | None: ... # _locateAll_opencv @overload @@ -176,8 +178,6 @@ def pixelMatchesColor( def pixel(x: int, y: int) -> tuple[int, int, int]: ... def screenshot(imageFilename: StrOrBytesPath | None = None, region: tuple[int, int, int, int] | None = None) -> Image.Image: ... -grab = screenshot - # _locateAll_opencv @overload def locateAll(