code: def setChecked(self, tocheck):
          
          layout = self.layout()
          for i in range(layout.count()):
              w = layout.itemAt(i).widget()
              if w.text() in tocheck:
                  w.setChecked(True)
docs: Sets the attributes *tocheck* as checked
  
          :param tocheck: attributes names to check
          :type tocheck: list<str>