Return window ID of form (later should use attr list liek objects).

This commit is contained in:
Guido van Rossum 1991-09-13 15:32:37 +00:00
parent 8db0307399
commit 4f5eafb0cf

View 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);
}