File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -52,6 +52,8 @@ def _pyimagingtkcall(
5252) -> None :
5353 tk = photo .tk
5454 ptr_str = repr (ptr ).strip ("<>" )
55+ # Replace pointer to actual one for pypy
56+ ptr_str = ptr_str .rpartition ("0x" )[0 ] + hex (id (ptr ))
5557 try :
5658 tk .call (command , photo , ptr_str )
5759 except tkinter .TclError :
@@ -60,6 +62,7 @@ def _pyimagingtkcall(
6062 from . import _imagingtk
6163
6264 _imagingtk .tkinit (tk .interpaddr ())
65+ print (">>> _pyimagingtkcall ref" , ptr_str )
6366 tk .call (command , photo , ptr_str )
6467
6568
Original file line number Diff line number Diff line change @@ -59,6 +59,9 @@ ImagingFind(const char *name) {
5959 PyObject * capsule ;
6060 const char * expected = "capsule object \"" IMAGING_MAGIC "\" at 0x" ;
6161
62+ printf (">>> ImagingFind '%s'" , name );
63+ printf (">>> expected '%s'" , expected );
64+
6265 if (strncmp (name , expected , strlen (expected ))) {
6366 return NULL ;
6467 }
You can’t perform that action at this time.
0 commit comments