This commit is contained in:
wiredfool 2017-01-26 05:55:18 -08:00
parent a69c37738a
commit a71ba1a1c6
2 changed files with 4 additions and 5 deletions

View File

@ -277,6 +277,8 @@ class BitmapImage(object):
def getimage(photo): def getimage(photo):
""" This function is unimplemented """
"""Copies the contents of a PhotoImage to a PIL image memory.""" """Copies the contents of a PhotoImage to a PIL image memory."""
photo.tk.call("PyImagingPhotoGet", photo) photo.tk.call("PyImagingPhotoGet", photo)

View File

@ -24,10 +24,7 @@
* This registers a Tcl command called "PyImagingPhoto", which is used * This registers a Tcl command called "PyImagingPhoto", which is used
* to communicate between PIL and Tk's PhotoImage handler. * 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: * History:
* 1995-09-12 fl Created * 1995-09-12 fl Created
* 1996-04-08 fl Ready for release * 1996-04-08 fl Ready for release
@ -169,7 +166,7 @@ PyImagingPhotoPut(ClientData clientdata, Tcl_Interp* interp,
return TCL_OK; return TCL_OK;
} }
/* Warning -- this does not work at all */
static int static int
PyImagingPhotoGet(ClientData clientdata, Tcl_Interp* interp, PyImagingPhotoGet(ClientData clientdata, Tcl_Interp* interp,
int argc, const char **argv) int argc, const char **argv)