Skip to content

Commit a83a024

Browse files
committed
Renamed argument
1 parent 356c3c1 commit a83a024

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/PIL/ImageGrab.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def grab(
3535
include_layered_windows: bool = False,
3636
all_screens: bool = False,
3737
xdisplay: str | None = None,
38-
handle: int | ImageWin.HWND | None = None,
38+
window: int | ImageWin.HWND | None = None,
3939
) -> Image.Image:
4040
im: Image.Image
4141
if xdisplay is None:
@@ -56,12 +56,12 @@ def grab(
5656
return im_resized
5757
return im
5858
elif sys.platform == "win32":
59-
if handle is not None:
59+
if window is not None:
6060
all_screens = -1
6161
offset, size, data = Image.core.grabscreen_win32(
6262
include_layered_windows,
6363
all_screens,
64-
int(handle) if handle is not None else 0,
64+
int(window) if window is not None else 0,
6565
)
6666
im = Image.frombytes(
6767
"RGB",

0 commit comments

Comments
 (0)