Tkinter
Jay
first180 at gmail.com
Sun Apr 9 08:32:27 EDT 2006
Now I just get this error message.
AttributeError: 'int' object has no attribute 'image'
But the picture appears so I am almost their.
---START---
from Tkinter import *
class App:
def __init__(self, root):
self.MainFrame = Canvas(root)
self.MainFrame.pack(fill=BOTH, expand=1)
BackgroundFile = PhotoImage(file="Background.GIF")
Background = self.MainFrame.create_image(0, 0,
image=BackgroundFile)
Background.image = BackgroundFile # keep a reference!
root = Tk()
app = App(root)
root.mainloop()
More information about the Python-list
mailing list