コード例 #1
0
ファイル: StimParamSet.py プロジェクト: travis-open/acq4
 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)
コード例 #2
0
ファイル: StimParamSet.py プロジェクト: hiuwo/acq4
 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)