Programatically call a button function

If I have a collapsable frame inside the viewport, I can’t click on the button to close it. How do I call the collapse function from other interaction for example, clicking on rectangle?

If you have a reference to the object, you can use:

my_button.call_clicked_fn()

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.