New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Checkable button behavior is not intuitive #4717
Comments
It appears that @Sunderlandkyl issued commontk/CTK@33286e5 and then the corresponding updated in Slicer (9f3c61e) to address the issue based on a user's input. The desired behavior that was implemented was that when the checkbox is checked and the button is in the checked state, then clicking the button puts the button in the unchecked state AND the checkbox is also unchecked. Then clicking the button again is just a momentary push as it is no longer in the checkable state. This updated behavior can be observed by doing checkable_button = ctk.ctkCheckablePushButton()
checkable_button .checkBoxControlsButtonToggleState = True
checkable_button.show() @Sunderlandkyl Is the only remaining thing to do for this issue, is to make the ctkCheckablePushButton in the Volume Rendering module also use this new behavior? It has not yet been updated to use this new logic. |
Clicking the check box on the SynchronizeScalarDisplayNodeButton now changes the toggle state of the button. Checked causes the button to be toggled "On" and unchecked causes it to be toggled "Off". Fixes Slicer#4717
Yeah, checkBoxControlsButtonToggleState should fix the behavior. Made a pr #4980. |
Clicking the check box on the SynchronizeScalarDisplayNodeButton now changes the toggle state of the button. Checked causes the button to be toggled "On" and unchecked causes it to be toggled "Off". Fixes #4717
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
The text was updated successfully, but these errors were encountered: