Having one of those “Google is full of results that answer close but off mark questions” moments. I definitely need someone to point me in the correct direction or this will take forever to figure out.
I’m trying to find a way to display within UI output from my code. In this case it’s information for the user of my script and displaying it in command line is useless. So while I’ve figured out how to use print statement I cannot figure out how to update a window display.
I’ll be simplify what I need from my actual application for clarity.
string $cheese = "cheese";
window -title "Maybe Cheese";
columnLayout -columnAttach "both" 5 -rowSpacing 10 -columnWidth 250;
button -label "add cheese" -command "";
textField -text "No cheese" -editable false;
showWindow;
Okay so what I am looking to do is have the button labeled “Add Cheese” change text field to display “Cheese”.
So far everything I’ve found involves taking in user input and reacting to it in the code. I’m looking to take the codes output and show it to the user. I don’t need to stick with textField but it’s the only thing I’ve found in my digging to display output (with editable set to false).