From a71ba1a1c63678c701524203788bf2d3c733d1e5 Mon Sep 17 00:00:00 2001 From: wiredfool Date: Thu, 26 Jan 2017 05:55:18 -0800 Subject: [PATCH] comments --- PIL/ImageTk.py | 2 ++ Tk/tkImaging.c | 7 ++----- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/PIL/ImageTk.py b/PIL/ImageTk.py index d0d6fa8fd..8c6d1a9c2 100644 --- a/PIL/ImageTk.py +++ b/PIL/ImageTk.py @@ -277,6 +277,8 @@ class BitmapImage(object): def getimage(photo): + """ This function is unimplemented """ + """Copies the contents of a PhotoImage to a PIL image memory.""" photo.tk.call("PyImagingPhotoGet", photo) diff --git a/Tk/tkImaging.c b/Tk/tkImaging.c index 6c612cfe9..f448be166 100644 --- a/Tk/tkImaging.c +++ b/Tk/tkImaging.c @@ -24,10 +24,7 @@ * This registers a Tcl command called "PyImagingPhoto", which is used * to communicate between PIL and Tk's PhotoImage handler. * - * Compile and link tkImaging.c with tkappinit.c and _tkinter (see the - * Setup file for details on how to use tkappinit.c). Note that - * _tkinter.c must be compiled with WITH_APPINIT. - * + * History: * 1995-09-12 fl Created * 1996-04-08 fl Ready for release @@ -169,7 +166,7 @@ PyImagingPhotoPut(ClientData clientdata, Tcl_Interp* interp, return TCL_OK; } - +/* Warning -- this does not work at all */ static int PyImagingPhotoGet(ClientData clientdata, Tcl_Interp* interp, int argc, const char **argv)