Checkbox to button question?


What is the simplest and/or cleanest way of moving a checkbox option to a button in a addon?
I can create a simple operator that calls the boolean, and add a UI button, but the button doesn’t show a active state, like the checkbox does. The button stays gray, but needs to turn blue to show it’s active.

I found some code examples dealing with object properties, but nothing on the above.

If someone has some examples to show, that would be great!



Consider the toggle keyword argument for your UILayout.prop() definition.