[Image-SIG] PIL ImageGrab clipboard block
Alexey Borzenkov
snaury at gmail.com
Sat Apr 14 18:56:42 CEST 2007
On 4/14/07, Ole Trenner <ole.trenner at gmx.de> wrote:
> Hi List,
>
> I'm currently using the ImageGrab module of PIL for a small image upload
> client. I've noticed that the ImageGrab.grabclipboard() method seems to
> somehow block the clipboard.
This is a bug, you can use this patch to fix that:
diff -ruN Imaging-1.1.6-orig/display.c Imaging-1.1.6/display.c
--- Imaging-1.1.6-orig/display.c Sun Dec 3 14:51:25 2006
+++ Imaging-1.1.6/display.c Sat Apr 14 20:54:37 2007
@@ -496,6 +496,7 @@
if (!handle) {
/* FIXME: add CF_HDROP support to allow cut-and-paste from
the explorer */
+ CloseClipboard();
Py_INCREF(Py_None);
return Py_None;
}
Best regards,
Alexey.
More information about the Image-SIG
mailing list