How to set slider values to variable from .xlsx?

Setting labels after initialisation is difficult, but not impossible! If you have the same number of labels each time, you could do this:

# Get labels list for this routine
labels = efflabels.split(",")
# For each label...
for i, obj in enumerate(mySlider.labelObjs):
    # ...set its text to be the corresponding value in labels, and store this in the slider
    obj.text = mySlider.labels[i] = labels[i]

(the initial value of labels would need to be the same number of values as in efflabels separated by commas, what these values are is basically irrelevant)

Updating is still the cleanest way though, what issues are you having? If a bug in the new release makes you not want to update then that’s something I’m keen to fix

1 Like