Title: Signature.html
I've been playing with PIL and Tkinter a bit, and see that PIL does not have any facility to view the image file I draw on. I open a file from my folder with a py program as an Image. The only way, without using some other module, is to save the changed file, then display it with a paint or photo program. Is that correct, or did I miss something in PIL?

Alan Gauld wrote:
"Wayne Watson" <sierra_mtnv...@sbcglobal.net> wrote

When I noticed that both have an arc method that gave me pause.

Apparently, PIL provides IP (image processing:  ...while Tkinter
provides widgets. In PIL, arc allows one to draw on images but
doesn't allow one to display them. The display and presentation
is the function of Tkinter, and can draw on the widget canvas
where an image, from PIL, might be placed. Comments?

Yes you have understood pretty well. PIL provides more sophisticated
IP than Tkinter can do on its own. For simple images such as
charts/graphs you might decide to draw them direct in Tkinter
without using PIL. For that reason Tkinter canvas allows you to
draw shapes, such as arc, directly on the canvas.

For more sophisticated use (such as complex charts) you might
use a plotting library to create the image and then display the image
in Tkinter. Or to manipulate sophisticated graphics (like photos)
you would probably use PIL or ImageMagik or somesuch.

HTH,


--
           Wayne Watson (Watson Adventures, Prop., Nevada City, CA)

             (121.01 Deg. W, 39.26 Deg. N) GMT-8 hr std. time)
            
         Copper and its alloys have been found effective in hospital
         sinks, hand rails, beds, ... in significantly reducing 
         bacteria. Estimates are 1/20 people admitted to a hospital
         become infected, and 1/20 die from the infection.
                       -- NPR Science Friday, 01/16/2009 

                    Web Page: <www.speckledwithstars.net/>
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to