mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
Fix a code example by adding a missing import.
Fixes #1557890. Will backport to release25-maint.
This commit is contained in:
parent
b11472358f
commit
be1bc3b63a
1 changed files with 1 additions and 1 deletions
|
@ -1848,7 +1848,7 @@ GetWindowRect(
|
|||
|
||||
Here is the wrapping with \code{ctypes}:
|
||||
\begin{quote}
|
||||
\begin{verbatim}>>> from ctypes import POINTER, WINFUNCTYPE, windll
|
||||
\begin{verbatim}>>> from ctypes import POINTER, WINFUNCTYPE, windll, WinError
|
||||
>>> from ctypes.wintypes import BOOL, HWND, RECT
|
||||
>>> prototype = WINFUNCTYPE(BOOL, HWND, POINTER(RECT))
|
||||
>>> paramflags = (1, "hwnd"), (2, "lprect")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue