summaryrefslogtreecommitdiffstats
path: root/Mac/Modules
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1995-02-28 09:49:02 (GMT)
committerGuido van Rossum <guido@python.org>1995-02-28 09:49:02 (GMT)
commitea39abd56c9f66b54c01e7c08682329790ae59b4 (patch)
tree91906552520cc8e180f3a186a44596fb8ebae0aa /Mac/Modules
parente26c263e71f9f46d3a6fc7b5c69b6a8e81c1997c (diff)
downloadcpython-ea39abd56c9f66b54c01e7c08682329790ae59b4.zip
cpython-ea39abd56c9f66b54c01e7c08682329790ae59b4.tar.gz
cpython-ea39abd56c9f66b54c01e7c08682329790ae59b4.tar.bz2
more stuff
Diffstat (limited to 'Mac/Modules')
-rw-r--r--Mac/Modules/win/Winmodule.c3
-rw-r--r--Mac/Modules/win/wingen.py4
-rw-r--r--Mac/Modules/win/winscan.py4
3 files changed, 9 insertions, 2 deletions
diff --git a/Mac/Modules/win/Winmodule.c b/Mac/Modules/win/Winmodule.c
index 181cf77..fc89803 100644
--- a/Mac/Modules/win/Winmodule.c
+++ b/Mac/Modules/win/Winmodule.c
@@ -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 ========================= */
+
diff --git a/Mac/Modules/win/wingen.py b/Mac/Modules/win/wingen.py
index a8c0cc2..0abf6e0 100644
--- a/Mac/Modules/win/wingen.py
+++ b/Mac/Modules/win/wingen.py
@@ -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)
+
+
diff --git a/Mac/Modules/win/winscan.py b/Mac/Modules/win/winscan.py
index 6ae03f4..8d089a3 100644
--- a/Mac/Modules/win/winscan.py
+++ b/Mac/Modules/win/winscan.py
@@ -62,7 +62,11 @@ class MyScanner(Scanner):
([("WindowPtr", "*", "OutMode")],
[("ExistingWindowPtr", "*", "*")]),
+
+ ([("WindowPtr", "FrontWindow", "ReturnMode")],
+ [("ExistingWindowPtr", "*", "*")]),
]
if __name__ == "__main__":
main()
+