mirror of
https://github.com/python/cpython.git
synced 2025-10-17 12:18:23 +00:00
Added getxwindowin() method
This commit is contained in:
parent
8119447fbe
commit
8dcbbac15a
1 changed files with 14 additions and 0 deletions
|
@ -1535,6 +1535,17 @@ window_setwincursor(self, args)
|
||||||
return None;
|
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[] = {
|
static struct methodlist window_methods[] = {
|
||||||
{"begindrawing",window_begindrawing},
|
{"begindrawing",window_begindrawing},
|
||||||
{"change", window_change},
|
{"change", window_change},
|
||||||
|
@ -1553,6 +1564,9 @@ static struct methodlist window_methods[] = {
|
||||||
{"setwincursor",window_setwincursor},
|
{"setwincursor",window_setwincursor},
|
||||||
{"show", window_show},
|
{"show", window_show},
|
||||||
{"textcreate", window_textcreate},
|
{"textcreate", window_textcreate},
|
||||||
|
#ifdef CWI_HACKS
|
||||||
|
{"getxwindowid",window_getxwindowid},
|
||||||
|
#endif
|
||||||
{NULL, NULL} /* sentinel */
|
{NULL, NULL} /* sentinel */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue