Get a json structure of the current inputs, 
        to be able to load later

def saveTemplate(self):
        """Get a json structure of the current inputs, 
        to be able to load later"""
        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