How to click UI>Basic Widgets>buttonMomentary via script?

So there’s the button operator found in OP Create Dialog >COMP>Panels>Button and you can click it via script with

button.click()

but there’s also Palette>UI>Basic Widgets>buttonMomentary, for which

button.click()

doesn’t work. Unfortunately, I already made a big part of my UI using the latter. I’ve tried looking at Python help and entering button.click(0.5,0.5), button.clickChild(0), etc. but nothing’s working. Anyone know how to do this?

Setting the value to 1 does work, but then I’d have to add a delay and set it back to 0 to get the same effect as a click which seems silly.

OK, a colleague figured it out for me. The answer is to run click(0.5,0.5) on the button0 operator inside of the buttonMomentary widget.