projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
906681b
)
Fix code example by adding a missing import.
author
Thomas Heller
<theller@ctypes.org>
Thu, 2 Nov 2006 20:24:26 +0000
(20:24 +0000)
committer
Thomas Heller
<theller@ctypes.org>
Thu, 2 Nov 2006 20:24:26 +0000
(20:24 +0000)
Fixes #
1557890
.
Backported from trunk.
Doc/lib/libctypes.tex
patch
|
blob
|
history
diff --git
a/Doc/lib/libctypes.tex
b/Doc/lib/libctypes.tex
index 2bae25b99067099555b10f4cb46f18cb69d86356..8474a44ef00715c076ada48aa369b06269fcf881 100755
(executable)
--- 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")