Fwd: PhotoImage problem
- From: "Guilherme Polo" <ggpolo@xxxxxxxxx>
- Date: Mon, 30 Jun 2008 13:00:37 -0300
---------- Forwarded message ----------
From: Guilherme Polo <ggpolo@xxxxxxxxx>
Date: Mon, Jun 30, 2008 at 1:00 PM
Subject: Re: PhotoImage problem
To: jimgardener <jimgardener@xxxxxxxxx>
On Mon, Jun 30, 2008 at 12:02 PM, jimgardener <jimgardener@xxxxxxxxx> wrote:
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?
PhotoImage is a class in the Tkinter module, so if you have from
Tkinter import * and from ImageTk import PhotoImage it is very
possible that you will have problems.
thanks
jim
--
http://mail.python.org/mailman/listinfo/python-list
--
-- Guilherme H. Polo Goncalves
.
- References:
- PhotoImage problem
- From: jimgardener
- PhotoImage problem
- Prev by Date: Re: regex help
- Next by Date: ctypes - swig - pointer
- Previous by thread: PhotoImage problem
- Next by thread: ctypes - swig - pointer
- Index(es):