]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Added getxwindowin() method
authorGuido van Rossum <guido@python.org>
Sat, 27 Jul 1991 21:42:24 +0000 (21:42 +0000)
committerGuido van Rossum <guido@python.org>
Sat, 27 Jul 1991 21:42:24 +0000 (21:42 +0000)
Modules/stdwinmodule.c

index 9b436afb4760354c5f1ac6c8a6aa5a82bac4ed2c..8a652e30290ec826818d79697ed38b0e2e1fa656 100644 (file)
@@ -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 */
 };