def handleInput(sender, e): state = GameState() state.GameText = "You said: " + sender.Text Program.SetState( ExportGameState(state) ) myFunction()