summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1991-07-27 21:42:24 (GMT)
committerGuido van Rossum <guido@python.org>1991-07-27 21:42:24 (GMT)
commit8dcbbac15a45e6483144f789bf97d6df57bdf288 (patch)
treebe1a85882d931343f7fe6988901542ccec800048 /Modules
parent8119447fbe723296a8a8e7e1547e170af475eef1 (diff)
downloadcpython-8dcbbac15a45e6483144f789bf97d6df57bdf288.zip
cpython-8dcbbac15a45e6483144f789bf97d6df57bdf288.tar.gz
cpython-8dcbbac15a45e6483144f789bf97d6df57bdf288.tar.bz2
Added getxwindowin() method
Diffstat (limited to 'Modules')
-rw-r--r--Modules/stdwinmodule.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/Modules/stdwinmodule.c b/Modules/stdwinmodule.c
index 9b436af..8a652e3 100644
--- a/Modules/stdwinmodule.c
+++ b/Modules/stdwinmodule.c
@@ -1535,6 +1535,17 @@ window_setwincursor(self, args)
return None;
}
+#ifdef CWI_HACKS
+static object *
+window_getxwindowid(self, args)
+ windowobject *self;
+ object *args;
+{
+ long wid = wgetxwindowid(self->w_win);
+ return newintobject(wid);
+}
+#endif
+
static struct methodlist window_methods[] = {
{"begindrawing",window_begindrawing},
{"change", window_change},
@@ -1553,6 +1564,9 @@ static struct methodlist window_methods[] = {
{"setwincursor",window_setwincursor},
{"show", window_show},
{"textcreate", window_textcreate},
+#ifdef CWI_HACKS
+ {"getxwindowid",window_getxwindowid},
+#endif
{NULL, NULL} /* sentinel */
};