I have getting confused in getting the value from the Tkinter() Entry Field. I have this kind of code...
from Tkinter import*
def valueGET(val1, val2):
The code call valueGET even before submit button is created. Then it pass the return value of the function to Button constructor as command argument.
To register the function as callback, replace folloiwng line:
submit = Button(frame, text="Enter", width=15, command=valueGET(E1.get(), E2.get()))
with:
submit = Button(frame, text="Enter", width=15, command=lambda: valueGET(E1.get(), E2.get()))