Thanks very much. That works. I need to study it carefully to see why. This OOP is not intuitively obvious to me!
John.
Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
Latest posts made by jcallum
-
RE: GUI textfield example
-
GUI textfield example
Hi -
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.
John.