"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,


--
Alan Gauld
Author of the Learn to Program web site
http://www.freenetpages.co.uk/hp/alan.gauld.

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to