1 | initial version |
There's not an easy way to lock the sliders, though you could easily ignore one of the sliders if the checkbox was checked.
@interact
def _(a=slider(0,10,1,default=2),b=slider(0,10,1,default=5),equal=checkbox(False)):
if equal:
b=a
print a, b