Skip to content Skip to sidebar Skip to footer

Tkinter Entry Variable From Function

This should be easy but I am suffering search fatigue for the answer I need. The code below pops up an input window. I make entries into the entry fields and the function show_entr

Solution 1:

Does this solve the problem?

def show_entry_fields():
    global site, score, master
    site = e1.get()
    score = e2.get()
    master.destroy()

At least the print at the end of the program is printing the right answer.

Post a Comment for "Tkinter Entry Variable From Function"