mirror of
https://github.com/python/cpython.git
synced 2025-08-11 04:19:06 +00:00
Add method to call wsetactive(win).
This commit is contained in:
parent
2d78590183
commit
b7e5160838
1 changed files with 13 additions and 0 deletions
|
@ -1506,6 +1506,18 @@ window_scroll(wp, args)
|
||||||
return None;
|
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 *
|
static object *
|
||||||
window_setdocsize(wp, args)
|
window_setdocsize(wp, args)
|
||||||
windowobject *wp;
|
windowobject *wp;
|
||||||
|
@ -1660,6 +1672,7 @@ static struct methodlist window_methods[] = {
|
||||||
{"getwinsize", window_getwinsize},
|
{"getwinsize", window_getwinsize},
|
||||||
{"menucreate", window_menucreate},
|
{"menucreate", window_menucreate},
|
||||||
{"scroll", window_scroll},
|
{"scroll", window_scroll},
|
||||||
|
{"setactive", window_setactive},
|
||||||
{"setdocsize", window_setdocsize},
|
{"setdocsize", window_setdocsize},
|
||||||
{"setorigin", window_setorigin},
|
{"setorigin", window_setorigin},
|
||||||
{"setselection",window_setselection},
|
{"setselection",window_setselection},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue