Ask your own question, for FREE!
Computer Science 17 Online
OpenStudy (anonymous):

How create a new widget with a widget?? like button create a entry widget when clicked

OpenStudy (anonymous):

here is my code: import tkinter from tkinter.constants import * tk = tkinter.Tk() frame = tkinter.Frame(tk, relief=SUNKEN, borderwidth=5) frame.pack(fill=BOTH,expand=1) label = tkinter.Label(frame, text="Hello, World") label.pack(fill=X, expand=1) entry= tkinter.Entry(frame) entry.pack(side = BOTTOM) def gettext(): v=entry.get() print(v) button = tkinter.Button(frame,text="evaluate",command=gettext) button.pack(side=BOTTOM) tk.mainloop() How to create a new button widget that can create infinity of entry widget??

OpenStudy (anonymous):

I on python 3.2.2, tkinter , window7

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!