We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 356c3c1 commit a83a024Copy full SHA for a83a024
src/PIL/ImageGrab.py
@@ -35,7 +35,7 @@ def grab(
35
include_layered_windows: bool = False,
36
all_screens: bool = False,
37
xdisplay: str | None = None,
38
- handle: int | ImageWin.HWND | None = None,
+ window: int | ImageWin.HWND | None = None,
39
) -> Image.Image:
40
im: Image.Image
41
if xdisplay is None:
@@ -56,12 +56,12 @@ def grab(
56
return im_resized
57
return im
58
elif sys.platform == "win32":
59
- if handle is not None:
+ if window is not None:
60
all_screens = -1
61
offset, size, data = Image.core.grabscreen_win32(
62
include_layered_windows,
63
all_screens,
64
- int(handle) if handle is not None else 0,
+ int(window) if window is not None else 0,
65
)
66
im = Image.frombytes(
67
"RGB",
0 commit comments