(Ah, if I could only learn to press Reply All! )

Glad you jogged my memory on the interactive facility. BTW, how do I clear the keyboard imports?

Using
>>> from Image import *
>>> Image
<class Image.Image at 0x00EA5720>
>>> help(Image)
Help on class Image in module Image:

class Image
 |  Methods defined here:
 | 
 |  __getattr__(self, name)
 | 
 |  __init__(self)
 | 
 |  convert(self, mode=None, data="" dither=None, palette=0, colors=256)
 |      Convert to other pixel format
 | 
 |  copy(self)
 |      Copy raster data
 | 
 |  crop(self, box=None)
 |      Crop region from image
 | 
 |  draft(self, mode, size)
 |      Configure image decoder
 | 
 |  filter(self, filter)
 |      Apply environment filter to image
 | 
 |  fromstring(self, data, decoder_name='raw', *args)
 |      Load data to image from binary string
 | 
...
This is definitely different than the Tkimage help you showed. I just followed the above entries for those you used below, and the Help(Image) reverts to the base class. So what's happening? How do I use the two Image classes to navigate between an image that uses PIL methods and one than uses Tkinter? Or another way of putting it, how do I use, say, arc in each class to work on their particular objects? Moreover, how do I attach the PIL image to the Tkinter canvas widget, where I'd like to work on it?

Alan Gauld wrote:

"Wayne Watson" <sierra_mtnv...@sbcglobal.net> wrote
lIts own image class. Interesting. ImageTk, apparently.

No just image. imageTk wouldn't hide your Image.

from Tkinter import *
Image
<class Tkinter.Image at 0x7fdee35c>
help(Image)
Help on class Image in module Tkinter:

class Image
|  Base class for images.
|
|  Methods defined here:
|
|  __del__(self)
|
|  __getitem__(self, key)
|
|  __init__(self, imgtype, name=None, cnf={}, master=None, **kw)
|
|  __setitem__(self, key, value)
|
|  __str__(self)
|
|  config = configure(self, **kw)
|
|  configure(self, **kw)
|      Configure the image.
|
|  height(self)
|      Return the height of the image.
|
|  type(self)
|      Return the type of the imgage, e.g. "photo" or "bitmap".
|
|  width(self)
|      Return the width of the image.

HTH,


--
Signature.html
           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