| 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
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.