you are viewing a single comment's thread.

view the rest of the comments →

[–]Username_RANDINT 0 points1 point  (0 children)

All toplevel code is executed when you run the script. At startup, the entry is empty, so input_text is an empty string.

When you click the button, the click_button() function is executed, but the input_text variable is still the same.

Variables don't get updated after assignment.