Smaller doc fixes.

This commit is contained in:
Thomas Heller 2008-06-11 18:40:51 +00:00
parent 2e9675adf8
commit 35b9020246

View file

@ -1706,9 +1706,7 @@ the windows header file is this::
LPCSTR lpCaption,
UINT uType);
Here is the wrapping with ``ctypes``:
::
Here is the wrapping with ``ctypes``::
>>> from ctypes import c_int, WINFUNCTYPE, windll
>>> from ctypes.wintypes import HWND, LPCSTR, UINT
@ -1733,9 +1731,7 @@ function retrieves the dimensions of a specified window by copying them into
HWND hWnd,
LPRECT lpRect);
Here is the wrapping with ``ctypes``:
::
Here is the wrapping with ``ctypes``::
>>> from ctypes import POINTER, WINFUNCTYPE, windll, WinError
>>> from ctypes.wintypes import BOOL, HWND, RECT
@ -1758,6 +1754,7 @@ do the error checking, and raises an exception when the api call failed::
... if not result:
... raise WinError()
... return args
...
>>> GetWindowRect.errcheck = errcheck
>>>
@ -1772,7 +1769,7 @@ instead, the normal processing will no longer take place::
... raise WinError()
... rc = args[1]
... return rc.left, rc.top, rc.bottom, rc.right
>>>
...
>>> GetWindowRect.errcheck = errcheck
>>>