more stuff

This commit is contained in:
Guido van Rossum 1995-02-28 09:49:02 +00:00
parent e26c263e71
commit ea39abd56c
3 changed files with 9 additions and 2 deletions

View File

@ -661,7 +661,7 @@ static PyObject *Win_FrontWindow(_self, _args)
return NULL;
_rv = FrontWindow();
_res = Py_BuildValue("O&",
WinObj_New, _rv);
WinObj_WhichWindow, _rv);
return _res;
}
@ -871,3 +871,4 @@ void initWin()
/* ========================= End module Win ========================= */

View File

@ -67,7 +67,7 @@ f = Method(void, 'SendBehind',
)
methods.append(f)
f = Function(WindowPtr, 'FrontWindow',
f = Function(ExistingWindowPtr, 'FrontWindow',
)
functions.append(f)
@ -224,3 +224,5 @@ f = Method(void, 'DragWindow',
(Rect_ptr, 'boundsRect', InMode),
)
methods.append(f)

View File

@ -62,7 +62,11 @@ class MyScanner(Scanner):
([("WindowPtr", "*", "OutMode")],
[("ExistingWindowPtr", "*", "*")]),
([("WindowPtr", "FrontWindow", "ReturnMode")],
[("ExistingWindowPtr", "*", "*")]),
]
if __name__ == "__main__":
main()