From be1bc3b63a0a07af4b204519bb0decd9714ea8ba Mon Sep 17 00:00:00 2001 From: Thomas Heller Date: Thu, 2 Nov 2006 20:22:29 +0000 Subject: [PATCH] Fix a code example by adding a missing import. Fixes #1557890. Will backport to release25-maint. --- Doc/lib/libctypes.tex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/lib/libctypes.tex b/Doc/lib/libctypes.tex index 2bae25b990..8474a44ef0 100755 --- a/Doc/lib/libctypes.tex +++ b/Doc/lib/libctypes.tex @@ -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") -- 2.50.0