Skip to content

Commit 491e637

Browse files
committed
debug
1 parent 392976f commit 491e637

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/PIL/ImageTk.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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

src/Tk/tkImaging.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)