From: Thomas Heller Date: Thu, 2 Nov 2006 20:24:26 +0000 (+0000) Subject: Fix code example by adding a missing import. X-Git-Tag: v2.5.1c1~272 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5aafe92822e1358222d15981c167491caed35c9f;p=python Fix code example by adding a missing import. Fixes #1557890. Backported from trunk. --- 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")