<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Thanks. Very good. That'll give me something to think about. Where is
your namespace tutorial?<br>
<br>
Alan Gauld wrote:
<blockquote cite="mid:glktni$90m$1@ger.gmane.org" type="cite">"Wayne
Watson" <a class="moz-txt-link-rfc2396E" href="mailto:sierra_mtnview@sbcglobal.net">&lt;sierra_mtnview@sbcglobal.net&gt;</a> wrote <br>
  <blockquote type="cite">
    <blockquote type="cite">
      <blockquote type="cite">
        <blockquote type="cite">Image
          <br>
        </blockquote>
      </blockquote>
    </blockquote>
&lt;class Image.Image at 0x00EA5720&gt;
    <br>
    <blockquote type="cite">
      <blockquote type="cite">
        <blockquote type="cite">help(Image)
          <br>
        </blockquote>
      </blockquote>
    </blockquote>
Help on class Image in module Image:
    <br>
...
    <br>
This is definitely different than the Tkimage help you showed. </blockquote>
  <br>
  <blockquote type="cite">So what's happening? </blockquote>
  <br>
You import your Image module as Image.
  <br>
Then you import all; the names from Tkinter which includes the name
Image. Thus the Tkinter Imahe hides the original imported Image.
  <br>
  <br>
You need to either <br>
import Image as im&nbsp;&nbsp;&nbsp; # or some other alias
  <br>
  <br>
or not use from Tkinter, ie use
  <br>
  <br>
import Tkinter as T
  <br>
  <br>
Then use T.Image to refer to the Tkinter Image and im to refer to the
imported Image module
  <br>
  <br>
Its all about controlling namespaces.
  <br>
It is exactly because of these kinds of problems that the from X import
* style is considered a bad idea. (In Tkinter it usually works because
the names are pretty GUI specific but if, as you are doing, you mix GUI
and graphics you get overlaps.
  <br>
  <br>
  <br>
  <blockquote type="cite">How do I use the two Image classes to
navigate between an image that uses PIL methods and one than uses
Tkinter? </blockquote>
  <br>
Just use the appropriate module prefix (or an alias)
  <br>
  <br>
See the namespaces topic in my tutor for a refresher on namespaces! :-)
  <br>
  <br>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<meta content="text/html;" http-equiv="Content-Type">
<title>Signature.html</title>
<pre class="moz-signature" cols="76">           Wayne Watson (Watson Adventures, Prop., Nevada City, CA)

             (121.01 Deg. W, 39.26 Deg. N) GMT-8 hr std. time)
<font color="#330099">            </font>
<b><b style="color: rgb(204, 51, 204);" class="b">       <span
 style="font-family: monospace; color: rgb(153, 51, 153);">  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 
</span></b></b><b style="color: rgb(204, 51, 204);" class="b"><span
 style="font-family: monospace; color: rgb(153, 51, 153);"></span></b><span
 style="color: rgb(153, 51, 153);"></span><span
 style="color: rgb(153, 51, 153);">
</span><span style="color: rgb(153, 51, 153);"></span><b
 style="color: rgb(204, 51, 204);" class="b"><span
 style="font-family: monospace;"></span></b><span
 style="color: rgb(204, 51, 204);"></span>                    Web Page: &lt;<a class="moz-txt-link-abbreviated" href="http://www.speckledwithstars.net/">www.speckledwithstars.net/</a>&gt;</pre>
</div>
</body>
</html>