def setContentFor(self, widget):
        """Updates toolbox contents with a data corresponding to a given tab."""
        for i in range(self.count()):
            item = self.widget(i)
            if widget.isStatic:
                item.setStaticContent(widget)
            else:
                item.setContent(widget)
Updates toolbox contents with a data corresponding to a given tab.