I have a problem on disabling a certain button when I press a togglebutton. I know most would suggest using link but on my case I cannot use it since my toggle button is also linked with another textarea which has opposite disable status. Here is my code to make it more clear
degree_text=widgets.BoundedIntText(
min=0,
max=360,
step=1,
description='Color Degree',
disabled=False
)
lock = widgets.ToggleButton(description = "Lock",layout=space_between)
start_button = widgets.Button(
description='Start',
button_style='success',
tooltip='Click to start reconstruction',
icon='check', # (FontAwesome names without the `fa-` prefix)
layout = space_between,
disabled=True
)
link((lock,'value'),(degree_text,'disabled'))
#cant use link because I need the degree text and start button to have opposite disabled status
#link((lock,'value'),(start_button,'disabled'))
Hope someone can help me with it, Thanks