]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Return window ID of form (later should use attr list liek objects).
authorGuido van Rossum <guido@python.org>
Fri, 13 Sep 1991 15:32:37 +0000 (15:32 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 13 Sep 1991 15:32:37 +0000 (15:32 +0000)
Modules/flmodule.c

index 2251bbfc43810b49da2abd4aca00c667ed4727ff..a651fdadd271e7e3f93d7789e914b0abc3adf773 100644 (file)
@@ -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);
 }