Fairly new to python here, so be gentleā¦
I am trying to change the text of a label on a UI based on user input into a console alert input variable. I can get a button title to change, but not a label text. What am I missing here?
This is basically what I'm doing (textlabel is the name of the label box in the UI). The program seems to run fine but makes no change to the label text:
def entername():
...mytext = console.input_alert('Please enter text:')
...textlabel=ui.Label('textlabel')
...textlabel.text=mytext
ui.load_view('myUI').present('sheet')
entername()