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