code: def showEditor(self):
          
          if self.editor is not None:
              editor = self.editor()
              editor.setModel(self)
              factory = get_stimulus_factory(self._stim.stimType())
              editor.editingFinished.connect(factory.update)
              return editor
          else:
              logger = logging.getLogger('main')
              logger.warning('Erm, no editor available :(')
docs: Creates and shows an editor for this Stimulus