gui related

madhuri vio madhuri.vio at gmail.com
Thu Jun 10 05:38:01 EDT 2010


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????
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20100610/1081b71e/attachment.html>


More information about the Python-list mailing list