File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,7 @@ def _pyimagingtkcall(
5151 command : str , photo : PhotoImage | tkinter .PhotoImage , ptr : object
5252) -> None :
5353 tk = photo .tk
54+ ptr_ref = ptr
5455 ptr_str = repr (ptr ).strip ("<>" )
5556 try :
5657 tk .call (command , photo , ptr_str )
@@ -60,6 +61,7 @@ def _pyimagingtkcall(
6061 from . import _imagingtk
6162
6263 _imagingtk .tkinit (tk .interpaddr ())
64+ print ('>>> _pyimagingtkcall ref' , ptr_ref )
6365 tk .call (command , photo , ptr_str )
6466
6567
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