[Tutor] How do I display a picture?

Michael C mysecretrobotfactory at gmail.com
Wed May 17 19:24:52 EDT 2017

I use python image library and apparently when I do

im = Image.open('1.png')

show() actually opens a empty console window that doesn't do anything and
as long as it's around the script hangs.
Currently I have to close it by clicking on the close button and it makes
my script useless.

so  i am trying find either a way to prevent that from poping up or to
close it automatically somehow

or to find another way to display the picture without using python image

On Wed, May 17, 2017 at 4:13 PM, Alan Gauld via Tutor <tutor at python.org>

> On 17/05/17 21:33, Michael C wrote:
> > How do I display a picture?
> What do you mean? What kind of picture?
> Where do you want it displayed (what kind
> of window/screen)?
> There are a dozen possible ways to "display a picture"
> depending on what you specifically want.
> --
> Alan G
> Author of the Learn to Program web site
> http://www.alan-g.me.uk/
> http://www.amazon.com/author/alan_gauld
> Follow my photo-blog on Flickr at:
> http://www.flickr.com/photos/alangauldphotos
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> To unsubscribe or change subscription options:
> https://mail.python.org/mailman/listinfo/tutor

More information about the Tutor mailing list