summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1991-09-13 15:32:37 (GMT)
committerGuido van Rossum <guido@python.org>1991-09-13 15:32:37 (GMT)
commit4f5eafb0cf0d5144813c4047d934063b64229804 (patch)
tree588ada24e2701bd404939b83ed80e3af5f42ce88 /Modules
parent8db030739989c639eb0ecfc8706b2e24380be388 (diff)
downloadcpython-4f5eafb0cf0d5144813c4047d934063b64229804.zip
cpython-4f5eafb0cf0d5144813c4047d934063b64229804.tar.gz
cpython-4f5eafb0cf0d5144813c4047d934063b64229804.tar.bz2
Return window ID of form (later should use attr list liek objects).
Diffstat (limited to 'Modules')
-rw-r--r--Modules/flmodule.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/flmodule.c b/Modules/flmodule.c
index 2251bbf..a651fda 100644
--- a/Modules/flmodule.c
+++ b/Modules/flmodule.c
@@ -1636,6 +1636,8 @@ form_getattr(f, name)
formobject *f;
char *name;
{
+ if (strcmp(name, "window") == 0)
+ return newintobject(f->ob_form->window);
/* XXX check for data attr's: x, y etc. */
return findmethod(form_methods, (object *)f, name);
}