On 4/14/07, Ole Trenner <[EMAIL PROTECTED]> 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.
_______________________________________________
Image-SIG maillist - [EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/image-sig