summaryrefslogtreecommitdiffstats
path: root/Mac/Modules/win/Winmodule.c
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>1995-08-17 14:35:56 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>1995-08-17 14:35:56 (GMT)
commitd4c26469d6d734efaa8bf2c5d997bd20b2d0de80 (patch)
treedf9a0b394a641f5455d493dd1e14b0aeb56b8503 /Mac/Modules/win/Winmodule.c
parentb95ea18a4c16e48e00f5c8fd0740ff8c3553373d (diff)
downloadcpython-d4c26469d6d734efaa8bf2c5d997bd20b2d0de80.zip
cpython-d4c26469d6d734efaa8bf2c5d997bd20b2d0de80.tar.gz
cpython-d4c26469d6d734efaa8bf2c5d997bd20b2d0de80.tar.bz2
Generated anew
Diffstat (limited to 'Mac/Modules/win/Winmodule.c')
-rw-r--r--Mac/Modules/win/Winmodule.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/Mac/Modules/win/Winmodule.c b/Mac/Modules/win/Winmodule.c
index 7d6de73..8691501 100644
--- a/Mac/Modules/win/Winmodule.c
+++ b/Mac/Modules/win/Winmodule.c
@@ -14,6 +14,7 @@
#include <Controls.h>
extern PyObject *ResObj_New(Handle);
+extern PyObject *ResObj_OptNew(Handle);
extern int ResObj_Convert(PyObject *, Handle *);
extern PyObject *WinObj_New(WindowPtr);
@@ -804,6 +805,20 @@ static PyObject *Win_GetNewCWindow(_self, _args)
return _res;
}
+static PyObject *Win_WhichWindow(_self, _args)
+ PyObject *_self;
+ PyObject *_args;
+{
+ PyObject *_res = NULL;
+
+ long ptr;
+
+ if ( !PyArg_ParseTuple(_args, "i", &ptr) )
+ return NULL;
+ return WinObj_WhichWindow((WindowPtr)ptr);
+
+}
+
static PyMethodDef Win_methods[] = {
{"InitWindows", (PyCFunction)Win_InitWindows, 1,
"() -> None"},
@@ -827,6 +842,8 @@ static PyMethodDef Win_methods[] = {
"(Rect boundsRect, Str255 title, Boolean visible, short procID, WindowPtr behind, Boolean goAwayFlag, long refCon) -> (WindowPtr _rv)"},
{"GetNewCWindow", (PyCFunction)Win_GetNewCWindow, 1,
"(short windowID, WindowPtr behind) -> (WindowPtr _rv)"},
+ {"WhichWindow", (PyCFunction)Win_WhichWindow, 1,
+ "Resolve an integer WindowPtr address to a Window object"},
{NULL, NULL, 0}
};