code: def setDoc(self, docs):
          
          # sort stim by start time
          docs = sorted(docs, key=lambda k: k['start_s'])
  
          for doc in docs:
              stim_type = doc['stim_type']
              if not stim_type in self.displayTable:
                  continue
              if not stim_type in self.displayTable[stim_type]:
                  continue
              display_attributes = self.displayTable.get(stim_type, self.defaultAttributes)
              
              self.lyt.addWidget(ComponentDetailFrame(doc, display_attributes))
docs: Sets the documentation to display
  
          :param docs: a list of the stimuli doc, which are dicts
          :type docs: list<dict>