in this program i tried..i am getting a name error... from Tkinter import* import Tkinter
a = Tk() a.title ("TOOL") entry = Tkinter.Canvas(a) #creating the canvas under the root entry.pack() #to call the packer geometry entry.create_rectangle(40,30,300,150,fill="white") b = Button(frame,text = "upload",fg="black",command = "browse") b.pack() c = Button(frame,text = "translate",fg="red",command = "still in progress") c.pack() d = Button(frame,text="exit",fg="green",command="bye") d.pack() a.mainloop() $ python newtool.py Traceback (most recent call last): File "newtool.py", line 14, in <module> b = Button(frame,text = "upload",fg="black",command = "browse") NameError: name 'frame' is not defined i didnt understand hw do i instantiate frame????
-- http://mail.python.org/mailman/listinfo/python-list