Hi! I wrote a code to let people write stuff in a box, using ui. However I want the program to output whatever the user types in the textview through the terminal. How do I do that?
Here is my code:
import ui
import console
def textimput(sender):
view = ui.View()
view.name = "yuppy"
view.background_color = 0.00, 1.00, 1.00
view.present("sheet")
text = ui.TextField()
text.flex = "LRTB"
text.action = textimput
view.add_subview(text)
text.center = (view.width 0.5, view.height 0.5)
As you can see, I haven't defined the method textimput yet because I don't know how to get the program to put the written text in the terminal.