PhotoImage problem



hi
I am using Python 2.5.1. In my code i want to use
self.myimage=PhotoImage (file=self.myfile)

so i can create the image in a canvas
self.mycanv.create_image(70,100,image=self.myimg)

it works when i add,
from ImageTk import PhotoImage

but this import caused an error message when i tried to run this in a
friend's linux machine that had python and PIL. Is PhotoImage part of
standard python library?In new versions of python do i have to modify
this import statement in anyway?

thanks
jim
.



Relevant Pages

  • Fwd: PhotoImage problem
    ... Subject: PhotoImage problem ... I am using Python 2.5.1. ... from ImageTk import PhotoImage ... PhotoImage is a class in the Tkinter module, ...
    (comp.lang.python)
  • Re: easiest way to plot x,y graphically during run-time?
    ... it and its interface with Python to make any sort of judgments as ... def start: ... canvas = tk.Canvas ... "in-process") to see the effects of each Tkinter operation as you go. ...
    (comp.lang.python)
  • Re: C++ OpenGL rendering, wxPython GUI?
    ... C++/OpenGL and a python interface to the rendering engine. ... wxPython-created canvas ID there will somehow be possible? ... Basically, the OpenGL ...
    (comp.lang.python)
  • Newbie Question
    ... I am trying to learn Python and I have a few questions. ... I have created a Class that is essentially a canvas with a red ... ChangebgColor# Error Message at this point ... Prev by Date: ...
    (comp.lang.python)
  • Re: introspection?
    ... On Wed, 18 Aug 2004, Phil Frost wrote: ... Jim ... >> something similar in Python. ... >> If any of you Python experts would let me know how to do this in ...
    (comp.lang.python)