Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4f5eafb

Browse files
committed
Return window ID of form (later should use attr list liek objects).
1 parent 8db0307 commit 4f5eafb

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Modules/flmodule.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1636,6 +1636,8 @@ form_getattr(f, name)
16361636
formobject *f;
16371637
char *name;
16381638
{
1639+
if (strcmp(name, "window") == 0)
1640+
return newintobject(f->ob_form->window);
16391641
/* XXX check for data attr's: x, y etc. */
16401642
return findmethod(form_methods, (object *)f, name);
16411643
}

0 commit comments

Comments
 (0)