Title: Signature.html
Its own image class. Interesting. ImageTk, apparently. Looking for more on the web finds:

From a NM Tech PIL pdf:
This module is for use with the graphical user interface functions of the Tkinter package. For more information
about the Tkinter widget set, see the local Tkinter page. Going there was of no help.

Lundh doesn't mention it in his Intro to Tkinter. Tkinter Handbook doesn't seem to mention it. I see a PhotoImageand bit class in a Pythonware doc. ImageTk appears to be a module. Ah, the NM Tech PIL doc has some words about it. It doesn't discuss it in much detail though. Maybe it has the same methods as PIL Image? new, composite, ...

Ran into another problem by changing to import Tkinter.

This gets me to:
    draw.line((0,0),(20,100), fill=128)
   TypeError: line() got multiple values for keyword argument 'fill'
(Interesting that the tuples here are not the way they were entered.)

Alan Gauld wrote:

"Wayne Watson" <sierra_mtnv...@sbcglobal.net> wrote
I'm not familiar with the Image and ImageDraw modules but what I think is happening is...

import Image, ImageDraw
from Tkinter import *

By doing this you have hidden Image because Tkinter has its own Image class.

im = Image.open("wagon.tif")

This is calling open() on Tkinter.Image

You need to either import Image as an alias or
use import Tkinter instead of from Tkinter.

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