diff options
author | Guido van Rossum <guido@python.org> | 1991-09-13 15:32:37 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1991-09-13 15:32:37 (GMT) |
commit | 4f5eafb0cf0d5144813c4047d934063b64229804 (patch) | |
tree | 588ada24e2701bd404939b83ed80e3af5f42ce88 | |
parent | 8db030739989c639eb0ecfc8706b2e24380be388 (diff) | |
download | cpython-4f5eafb0cf0d5144813c4047d934063b64229804.zip cpython-4f5eafb0cf0d5144813c4047d934063b64229804.tar.gz cpython-4f5eafb0cf0d5144813c4047d934063b64229804.tar.bz2 |
Return window ID of form (later should use attr list liek objects).
-rw-r--r-- | Modules/flmodule.c | 2 |
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); } |