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.
How to get a UI control value
-
I'm trying to keep it simple.
I have a simple script
<pre>import uiview = ui.load_view()
view.present('sheet')
</pre>In the UI designer I have a label.
How do I store the label value in a variable. Without defining a function.
<pre>
label_value = ?
</pre>Or the value of any other control.
-
You mean the text of the label? That would be something like
# ... label_value = view['label1'].text
(where 'label1' would be the name that you've given to the label in the UI editor)
-
Thank you so very much Ole!