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 didn't). Matt
-- http://mail.python.org/mailman/listinfo/python-list