Mercurial > cpython-lru_cache-weakref
diff Modules/stdwinmodule.c @ 325:baada20762b0 legacy-trunk
Added getxwindowin() method
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Sat, 27 Jul 1991 21:42:24 +0000 |
| parents | 85bd7dac13f3 |
| children | 4cdcc16bd080 |
line wrap: on
line diff
--- a/Modules/stdwinmodule.c Sat Jul 27 21:42:02 1991 +0000 +++ b/Modules/stdwinmodule.c Sat Jul 27 21:42:24 1991 +0000 @@ -1535,6 +1535,17 @@ 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 @@ {"setwincursor",window_setwincursor}, {"show", window_show}, {"textcreate", window_textcreate}, +#ifdef CWI_HACKS + {"getxwindowid",window_getxwindowid}, +#endif {NULL, NULL} /* sentinel */ };
