Cabbage Logo
Back to Cabbage Site

A way to set the value of a widget without it triggering a cabbageGet response

I’m trying to establish some default settings for when my program starts up. I’ve found that having my program set the values of the widgets and then letting them trigger the callbacks to make those default settings, only trouble is that I can’t seem to trigger those callbacks when the value is the same as already set.

The only solution i can think of at the moment is to set a value that I don’t want as the default in the cabbage section when defining these widgets, and then when the program starts, set the values to what I really want.

I guess I’d like to know two things.

Is there a way to set a value without triggering a callback?

And…

Is there a way to force it to callback no matter the value I set?

Can you not just have a single instrument that will run through all channels and update accordingly, without any triggers being used? Maybe you can you post some code just so I’m clear on the problem…

I apologise, but after I posted this I was able to figure out what I need to do. I wish I could explain what I was trying to do, but it’s just figuring out how my gui widgets interact with each other…

1 Like