예제 #1
0
 def _wait_control_default(self):
     return WaitControl(low_name=0,
                       auto_start=False,
                       wtime=self.duration,
                       title='',
                       dispose_at_end=False
                       )
예제 #2
0
    def add_control(self, **kw):
        if 'page_name' not in kw:
            kw['page_name'] = 'Wait {:02d}'.format(len(self.controls))
        w = WaitControl(**kw)

        self.controls.append(w)
        self.active_control = w

        return w
예제 #3
0
    def _setup_wait_control(self):
        from pychron.wait.wait_control import WaitControl
        wd = self._wait_control
        if self.manager:
            if hasattr(self.manager, 'get_wait_control'):
                wd = self.manager.get_wait_control()

        if wd is None:
            wd = WaitControl()

        self._wait_control = wd
        if self.manager:
            try:
                if wd not in self.manager.wait_group.controls:
                    self.manager.wait_group.controls.append(wd)
                self.manager.wait_group.active_control = wd
            except AttributeError:
                pass

        return wd
예제 #4
0
 def _controls_default(self):
     return [WaitControl()]