summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1992-01-26 18:13:18 (GMT)
committerGuido van Rossum <guido@python.org>1992-01-26 18:13:18 (GMT)
commitb7e51608386ee91840f00d1caa032ab0f14fbd36 (patch)
treec050b36ee83eaabe4700ced29114f298be361dc6 /Modules
parent2d78590183a93f08e12a33066c12a44012ad67fb (diff)
downloadcpython-b7e51608386ee91840f00d1caa032ab0f14fbd36.zip
cpython-b7e51608386ee91840f00d1caa032ab0f14fbd36.tar.gz
cpython-b7e51608386ee91840f00d1caa032ab0f14fbd36.tar.bz2
Add method to call wsetactive(win).
Diffstat (limited to 'Modules')
-rw-r--r--Modules/stdwinmodule.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/Modules/stdwinmodule.c b/Modules/stdwinmodule.c
index ab71b37..179cfe8 100644
--- a/Modules/stdwinmodule.c
+++ b/Modules/stdwinmodule.c
@@ -1507,6 +1507,18 @@ window_scroll(wp, args)
}
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;
object *args;
@@ -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},