Thank you! I found another but almost the same way:
if i.action.sensitive is False:
....textbutton i.caption:
........action NullAction()
else:
.....textbutton i.caption action i.action
I'm not sure which option is better, though. Seems like it doesn't really matter. But I keep testing. Thanks for the reply!