mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Added _id attribute to GrafPort objects (real id of grafport, numeric)
This commit is contained in:
parent
d9585c936b
commit
3355be3f35
2 changed files with 6 additions and 3 deletions
|
@ -204,6 +204,9 @@ class MyGRObjectDefinition(GlobalObjectDefinition):
|
|||
if ( strcmp(name, "spExtra") == 0 )
|
||||
return Py_BuildValue("O&", PyMac_BuildFixed, self->ob_itself->spExtra);
|
||||
/* XXXX Add more, as needed */
|
||||
/* This one is so we can compare grafports: */
|
||||
if ( strcmp(name, "_id") == 0 )
|
||||
return Py_BuildValue("l", (long)self->ob_itself);
|
||||
}""")
|
||||
|
||||
class MyBMObjectDefinition(GlobalObjectDefinition):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue