Exemplo n.º 1
0
    def _sample_changer_factory(self):
        sc = self.sample_changer
        if sc is None:
            sc = SampleChanger(manager=self)

        if sc.setup():
            result = sc.edit_traits(view='chamber_select_view')
            if result:
                if sc.chamber and sc.chamber != NULL_STR:
                    self.sample_changer = sc
                    return sc
    def _sample_changer_factory(self):
        sc = self.sample_changer
        if sc is None:
            sc = SampleChanger(manager=self,
                               chamber='CO2')

        result = sc.edit_traits(view='chamber_select_view')
        if result:
            if sc.chamber and sc.chamber != 'None':
                self.sample_changer = sc
                return sc
    def _sample_changer_factory(self):
        sc = self.sample_changer
        if sc is None:
            sc = SampleChanger(manager=self)

        if sc.setup():
            result = sc.edit_traits(view='chamber_select_view')
            if result:
                if sc.chamber and sc.chamber != NULL_STR:
                    self.sample_changer = sc
                    return sc
Exemplo n.º 4
0
    def _sample_changer_factory(self):
        sc = self.sample_changer
        if sc is None:
            sc = SampleChanger(manager=self,
                               chamber='CO2')

        result = 1
        result = sc.edit_traits(view='chamber_select_view')
        if result:
            if sc.chamber and sc.chamber != 'None':
                self.sample_changer = sc
                return sc