code: def saveTemplate(self):
          
          savedict = {}
          for comp_editor in self.widgets():
              stim = comp_editor.component()
              comp_editor.saveToObject()
              savedict[stim.name] = stim.stateDict()
          savedict['delay'] = self.delaySpnbx.value()
          return savedict
docs: Get a json structure of the current inputs, 
          to be able to load later