Images in Tkinter

Matt McCredie mccredie at
Fri Jul 20 19:00:55 CEST 2007

That code doesn't tell me anything. You are going to have to post a more
complete example to get help. Like, enough code so that I can run it and see
the same problem.

> Also, I tried creating the image object outside class but it
> gives a runtime error saying it is too early to create an image
> object. Please help!

You need to call Tkinter.Tk() before you can create an instance of
`PhotoImage' (I don't know why, but I know I got a similar error when I

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Python-list mailing list