diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2006-10-28 22:13:22 +0000 |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2006-10-28 22:13:22 +0000 |
commit | 7f2075a490718c0fbdbddcb806a4319b9c04db9f (patch) | |
tree | 17a7aa6a63a316a47ef46444e87855cca2ac713b | |
parent | ca63121553ac1ce98d7c2608e99fc813651524d3 (diff) | |
download | cpython-git-7f2075a490718c0fbdbddcb806a4319b9c04db9f.tar.gz |
From SF 1557890, fix problem of using wrong type in example.
-rwxr-xr-x | Doc/lib/libctypes.tex | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/lib/libctypes.tex b/Doc/lib/libctypes.tex index b2e488a807..5f486d4a3e 100755 --- a/Doc/lib/libctypes.tex +++ b/Doc/lib/libctypes.tex @@ -1821,7 +1821,7 @@ Here is the wrapping with \code{ctypes}: \begin{quote} \begin{verbatim}>>> from ctypes import c_int, WINFUNCTYPE, windll >>> from ctypes.wintypes import HWND, LPCSTR, UINT ->>> prototype = WINFUNCTYPE(c_int, HWND, LPCSTR, LPCSTR, c_uint) +>>> prototype = WINFUNCTYPE(c_int, HWND, LPCSTR, LPCSTR, UINT) >>> paramflags = (1, "hwnd", 0), (1, "text", "Hi"), (1, "caption", None), (1, "flags", 0) >>> MessageBox = prototype(("MessageBoxA", windll.user32), paramflags) >>>\end{verbatim} |