Tkinter PhotoImage Class???

G. Willoughby thecalm at NOSPAM.btinternet.com
Sun Oct 7 10:14:54 EDT 2001


Sorted it with this  :)  :

[snip]
import Image
import ImageTk
self.currentImage=Image.open(self.imageName)
self.currentPhotoImage=ImageTk.PhotoImage(self.currentImage)
self.canvasObject.create_image(0, 0, image=self.currentPhotoImage,
anchor=NW)
[/snip]

"G. Willoughby" <thecalm at NOSPAM.btinternet.com> wrote in message
news:9pinf8$p3i$1 at uranium.btinternet.com...
> Has anyone got a piece of code to explain to me how to use the Tkinter
> PhotoImage Class to display a .jpg inside a Tkinter Canvas object? The
> Tkinter docs are not finished.
> Thanks,
> G. Willoughby.
>
>





More information about the Python-list mailing list