Add method to call wsetactive(win).

This commit is contained in:
Guido van Rossum 1992-01-26 18:13:18 +00:00
parent 2d78590183
commit b7e5160838
1 changed files with 13 additions and 0 deletions

View File

@ -1506,6 +1506,18 @@ window_scroll(wp, args)
return None;
}
static object *
window_setactive(wp, args)
windowobject *wp;
object *args;
{
if (!getnoarg(args))
return NULL;
wsetactive(wp->w_win);
INCREF(None);
return None;
}
static object *
window_setdocsize(wp, args)
windowobject *wp;
@ -1660,6 +1672,7 @@ static struct methodlist window_methods[] = {
{"getwinsize", window_getwinsize},
{"menucreate", window_menucreate},
{"scroll", window_scroll},
{"setactive", window_setactive},
{"setdocsize", window_setdocsize},
{"setorigin", window_setorigin},
{"setselection",window_setselection},