How do I 'link' a widget's off/on state to toggle the visibility of a tab?

I just asked a similar question lately, I think it'll help~