def __init__(
     self, _super
 ):  # super is a reference to the procedure holding the item instance
     Step.__init__(self, _super)
     self.steptype = "PauseStep"
     self.time = LabelEntry(self.box, 0, 0, "Time (s):")
     self.time.expression = None
     self.entries.append(self.time)
 def __init__(self, _super):
     Step.__init__(self, _super)
     self.Valve = LabelEntry(self.box, 0, 0, "Valve:", width=16)
     self.Valve.expression = False
     self.State = LabelEntry(self.box, 0, 2, "State:", width=16)
     self.State.expression = False
     self.entries = [self.Valve, self.State]
     self.steptype = "ValveStep"
 def __init__(self, _super):
     Step.__init__(self, _super)
     self.box.config(text = self.parameter)
     self.temp = LabelEntry(self.box, 0, 2, "Temperature (C): ")
     self.time = LabelEntry(self.box, 0, 0, "Time (s):")
     self.entries.append(self.time)
     self.entries.append(self.temp)
     self.steptype = "TempStep"
Ejemplo n.º 4
0
 def __init__(self, id, request, state):
     Step.__init__(self, id, request, state)
     self.results = [self._is_not_installed(),
                     util.check_python_version((2, 3, 0, '', 0)),
                     util.check_dir_exists(config.data_dir),
                     util.check_is_writable(config.data_dir),
                     util.check_python_module_exists('pywsgi'),
                     util.check_python_module_exists('SpiffGuard'),
                     util.check_python_module_exists('SpiffIntegrator'),
                     util.check_python_module_exists('SpiffSignal'),
                     util.check_python_module_exists('SpiffWarehouse'),
                     util.check_python_module_exists('SpiffWikiMarkup')]
     self.failed  = False in [r for n, r, e in self.results]
    def __init__(self, _super):
        Step.__init__(self, _super)
        self.box.config(text="Pump")
        self.rate = LabelEntry(self.box, 0, 0, "Rate (cycles/s):", width=3)
        self.nCycles = LabelEntry(self.box, 0, 2, "Number of Cycles:", width=9)
        self.steptype = "PumpStep"

        valvesbox = LabelFrame(self.box)
        valvesbox.grid(row=1, column=0, columnspan=10)
        self.valveEntries = []
        for valve in (1, 2, 3):
            self.valveEntries.append(
                LabelEntry(valvesbox,
                           1,
                           2 * valve,
                           " --> Valve " + str(valve) + ": ",
                           width=2))
        self.entries = [self.rate, self.nCycles] + self.valveEntries