Page 1 of 1

Live API: ButtonElement.send_value(value) question

Posted: Tue Jul 29, 2014 8:17 pm
by ttilberg
Hey guys, I know discussion of the Live API isn't that big here, but there are a few of you that know this stuff.

In my adventure of learning Python + Live API I am confused with the mechanism that handles message sending scheduling.

In short, let's say I have a ButtonElement called btn.

When I send btn.send_value(127)
I can see that the message gets cued into:
btn._delayed_messages

I can force the update with the private method btn._send_delayed_messages(), or setting force_update = True, but this mechanism is obviously in place for a reason, and I don't believe is intended to be called directly. Can someone shed some light on what's happening here? What should I be doing, or where should I be putting some code to officially send this value to the controller button?

If you have any resources that can help, I'd appreciate the feedback.