You might want either an action method for a button or textfield, or a textfield delegate method. Then you could have sort of a graphical console.
Simple example:
import ui v=ui.View(frame=(0,0,500,500)) t=ui.TextField(frame=(0,0,300,75)) v.add_subview(t) def tfaction(textfield): '''when you change the textfield, and press return, this metjod is called''' print('textfield changed:', textfield.text ) t.action=tfaction v.present('sheet')Button actions work in a similar way. Textfields/textviews also have additional delegate methods that trigger on changes (before pressing enter) -- see section in docs on delegates, and TextField and TextView delegate attribute.
You might also want more of a popup textfield, in which case the dialogs module or console.input_alert can act like a ui version of rAw_input