Matt McCredie wrote: > > What/should I, can I do? > > Fix your code? > > > def login(): > > global e2,e1 > > print e2.get() > > print e1.get() > > That should work. > > Matt
Try something like this:
import Tkinter as tk
root = tk.Tk()
entry = tk.Entry(root)
button = tk.Button(root, text="print text in textbox")
def on_button_click(event):
print entry.get()
button.bind("<Button-1>", on_button_click)
entry.pack()
button.pack()
root.mainloop()
--
http://mail.python.org/mailman/listinfo/python-list
