I just need the code necessary to have my application assign the input from a text box to a variable after 'Enter' is pushed, and then use it to change a label.
This is what I have for this problem:
def on_action_activated(self):
self.next = self.action.get_text()
And then for using it I'm doing:
info.set_text("Would you like to start a new game? (no saving yet, working on it...)")
And it's not working for me. Now I'm doing all of this in several different functions, so would that be causing the problem, or is it just something else? I have created the local variable for both the label and the text box.