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
|
@ -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…
Reference in New Issue