View Single Post
Old 11-12-2018, 08:27 PM   #341
dsyrock
Human being with feelings
 
dsyrock's Avatar
 
Join Date: Sep 2018
Location: China
Posts: 191
Default

Quote:
Originally Posted by Lokasenna View Post
Strange. Make sure that when you assign the function to the button you're *not* adding ()s.

Good - gives the button the name of a function to run:
Code:
GUI.elms.my_btn.func = my_function
Bad - Runs the function immediately and gives the button whatever value it returned:
Code:
GUI.elms.my_btn.func = my_function()
Thanks, that's exactly what I had done, the() thing.

And there is a new question, about the Knob. How to combine a knob with a function? I checked your document and read the Knob-Output parts, but still confusing about it
dsyrock is offline   Reply With Quote