Greetings,
I'm brand new to Pythonista and I want to use UI Designer to create a form.
Within UI Designer, I have added a LABEL box to the file 'My UI.pyui', and have changed the LABEL box's 'Name' attribute to 'Connect_label'.
All I want to do is to change the LABEL box's TEXT attribute to "Fred", but I get an error:
"name 'Connect_label' is not defined'
I would have thought that by loading the "My UI" form (and that works) that I could have access to and modify the LABEL box's attributes. Do I need to add something else in the code?
Here's the code:
import ui
ui.load_view('My UI').present('sheet')
Connect_button.text = 'Fred'