[Image-SIG] Problem with show() in PIL1.1.6

Fredrik Lundh fredrik at pythonware.com
Tue Dec 9 17:00:17 CET 2008


The 1.1.5 behaviour on Windows was broken in a number of ways, so the
code was reverted to the 1.1.4 state of things in 1.1.6.

To get the old behaviour, you can use the helper function shown in this session:

>>> import threading
>>> from PIL import ImageWin
>>> def display(im):
...     def viewer():
...         w = ImageWin.ImageWindow(im)
...         w.mainloop()
...     t = threading.Thread(target=viewer)
...     t.start() # do the setup and run the mainloop in a separate thread
...
>>> from PIL import Image
>>> im = Image.new("RGB", (512, 512), "red")
>>> display(im)

</F>

2008/12/8 Tim Kraemer <kraemertim at ymail.com>:
> Hi everybody,
>
> I'm new to this mailing list and hope anybody can help me with my problem:
>
> Within a python script I use Image.show() to have a look on the images I
> analyze (if I want to). The script runs fully automated so there is no need
> to look at the images all the time.
>
> With PIL1.1.5 everything is alright but with PIL1.1.6 Image.show() waits
> until the showing program has been closed. I didn't find anything about this
> fundamental change in the 1.1.6 release changes. Therefore I'm wondering if
> this behaviour is intended or if this is a bug? Are there any command
> parameters to prevent Image.show() from waiting?
>
> FYI: I'm using Windows XP Pro SP2 with ActiveState Python 2.5.2
>
> Thanks in advance
> Tim
>
>
> _______________________________________________
> Image-SIG maillist  -  Image-SIG at python.org
> http://mail.python.org/mailman/listinfo/image-sig
>
>


More information about the Image-SIG mailing list