def setOpts(self, **opts): SimpleParameter.setOpts(self, **opts) if 'readonly' in opts: ## if this param is set to readonly, then disable sequencing. if opts['readonly'] is False: self['sequence'] = 'off' self.param('sequence').setOpts(readonly=opts['readonly'], visible=False)