I am looking for an example of code to read/get text from a textfield using the ui module. I have tried a number of things but can't seem to figure it out.
This is one attempt:
import ui v = ui.load_view('descent_calc') v.present('sheet') t1 = 120 def text_entered(sender): '@type sender: ui.Textfield' t1 = str(sender.text('textfield1')) print(t1)
If someone could point me to some good examples it would be great. Thanks.