def register(self): self.topvbox = gtk.VBox(False, 0) self.table = helpers.typical_io_table([("Set", 'o'), ("Read", "i")]) self.tree = helpers.typical_ncol_tree([ (gobject.TYPE_STRING, 'setting', 0), (gobject.TYPE_DOUBLE, 'value', 1) ]) self.tree.add_row("Start at", 0) self.tree.add_row("Setpoint", 0) self.tree.add_row("Upper Bound", 10.0) self.tree.add_row("Lower Bound", -10.0) self.tree.add_row("Read Scaling", 1.) self.tree.add_row("Lower Read Cutoff", 1.) self.tree.add_row("Upper Read Cutoff", 710.96500) self.tree.add_row("P Gain", -200.) self.tree.add_row("I Gain", .1) self.tree.add_row("Pause", 1.) self.tree.restore_state("PIDlock") self.table.restore_state("PIDlock") self.topvbox.pack_start(self.tree.treeview, True, True, 0) self.topvbox.pack_start(self.table.table, False, False, 0) self.ui_target.add(self.topvbox) self.ui_target.show_all() return
def register(self): self.topvbox = gtk.VBox(False, 0) self.table = helpers.typical_io_table([ ("Oven I set", 'o'), ("Egun V set", "o"), ("Egun bias set", 'o'), ("Endcap V set", 'o'), ("RFamp set", 'o'), ("RFfrq set", 'o')]) self.tree = helpers.typical_ncol_tree([(gobject.TYPE_STRING, 'setting', 0), (gobject.TYPE_DOUBLE, 'value', 1)]) self.tree.add_row("Oven time", 120) self.tree.add_row("Egun time", 10) self.tree.add_row("Oven I", 4.0) self.tree.add_row("Egun V", 2.5) self.tree.add_row("Egun bias", -20.0) self.tree.add_row("Endcaps V", 20) self.tree.add_row("RF amp", 6.0) self.tree.add_row("RF frq", 6.0) self.tree.restore_state("AutoLoad") self.table.restore_state("AutoLoad") self.topvbox.pack_start(self.tree.treeview, True, True, 0) self.topvbox.pack_start(self.table.table, False, False, 0) self.ui_target.add(self.topvbox) self.ui_target.show_all() return
def register(self): self.topvbox = gtk.VBox(False, 0) self.table = helpers.typical_io_table([ ("X Set", 'o'), ("Y1 Read", 'i'), ("Y2 Read", 'i')]) self.tree = helpers.typical_ncol_tree([(gobject.TYPE_STRING, 'setting', 0), (gobject.TYPE_DOUBLE, 'value', 1)]) self.tree.add_row("Hysteresis top point", 0) self.tree.add_row("Hysteresis top point wait", 0) self.tree.add_row("Hysteresis bottom point", 0) self.tree.add_row("Hysteresis bottom point wait", 0) self.tree.add_row("Measure point", 0) self.tree.add_row("Measure interval", 0.1) self.tree.add_row("Measure time", 60) self.tree.add_row("Y1 Scaling", 1.0) self.tree.add_row("Y2 Scaling", 1.0) self.tree.add_row("Pause", .05) self.tree.add_row("Finish at", 0.0) self.tree.restore_state("TimeDepScan") self.table.restore_state("TimeDepScan") self.topvbox.pack_start(self.tree.treeview, True, True, 0) self.topvbox.pack_start(self.table.table, False, False, 0) self.ui_target.add(self.topvbox) self.ui_target.show_all() return
def register(self): self.topvbox = gtk.VBox(False, 0) self.table = helpers.typical_io_table([("X set", 'o'), ("Y set", "o"), ("X read", 'i'), ("Y read", 'i'), ("Z read", 'i')]) self.tree = helpers.typical_ncol_tree([ (gobject.TYPE_STRING, 'setting', 0), (gobject.TYPE_DOUBLE, 'value', 1) ]) self.tree.add_row("Start x at", 0) self.tree.add_row("End x at", 1) self.tree.add_row("Start y at", 0) self.tree.add_row("End y at", 1) self.tree.add_row("Steps in x dir", 1000) self.tree.add_row("Steps in y dir", 1000) self.tree.add_row("Z Scaling", 1.0) self.tree.add_row("Pause X", .01) self.tree.add_row("Pause Y", .01) self.tree.add_row("Finish X at", 0.0) self.tree.add_row("Finish Y at", 0.0) self.tree.restore_state("2DScan") self.table.restore_state("2DScan") self.topvbox.pack_start(self.tree.treeview, True, True, 0) self.topvbox.pack_start(self.table.table, False, False, 0) self.ui_target.add(self.topvbox) self.ui_target.show_all() return
def register(self): self.topvbox = gtk.VBox(False, 0) self.table = helpers.typical_io_table([ ("X set", 'o'), ("X read", "i"), ("Y1 read", 'i'), ("Y2 read", "i")]) self.tree = helpers.typical_ncol_tree([(gobject.TYPE_STRING, 'setting', 0), (gobject.TYPE_DOUBLE, 'value', 1)]) self.tree.add_row("Start at", 0) self.tree.add_row("End at", 1) self.tree.add_row("Steps", 1000) self.tree.add_row("Y1 Scaling", 1.) self.tree.add_row("Y2 Scaling", 1.) self.tree.add_row("Baseline",0) self.tree.add_row("Pulse Width",1.) self.tree.add_row("Pause", .01) self.tree.add_row("Cycle?", 0) self.tree.add_row("Finish at", 0.0) self.tree.restore_state("1DScan") self.table.restore_state("1DScan") self.topvbox.pack_start(self.tree.treeview, True, True, 0) self.topvbox.pack_start(self.table.table, False, False, 0) self.ui_target.add(self.topvbox) self.ui_target.show_all() return
def register(self): self.active_script = None self.script_args = None self.topvbox = gtk.VBox(False, 0) scripts = os.listdir(SCRIPT_DIR) # Create a liststore to store all the options liststore = gtk.ListStore(gobject.TYPE_STRING) self.tree = helpers.typical_ncol_tree([(gobject.TYPE_STRING, 'setting', 0), (gobject.TYPE_DOUBLE, 'value', 1)]) iter = None for name in scripts: if (not name.endswith(".py")): continue name = name[:-3] if not iter: iter = liststore.append([name]) else: liststore.append([name]) # Create a combobox combo = gtk.ComboBoxEntry(liststore, 0) combo.connect("changed", self.combo_changed, None) combo.set_active_iter(iter) self.topvbox.pack_start(combo, False, False, 0) self.topvbox.pack_start(self.tree.treeview, True, True, 0) self.ui_target.add(self.topvbox) self.ui_target.show_all() return
def register(self): self.active_script = None self.script_args = None self.topvbox = gtk.VBox(False, 0) scripts = os.listdir(SCRIPT_DIR) # Create a liststore to store all the options liststore = gtk.ListStore(gobject.TYPE_STRING) self.tree = helpers.typical_ncol_tree([ (gobject.TYPE_STRING, 'setting', 0), (gobject.TYPE_DOUBLE, 'value', 1) ]) iter = None for name in scripts: if (not name.endswith(".py")): continue name = name[:-3] if not iter: iter = liststore.append([name]) else: liststore.append([name]) # Create a combobox combo = gtk.ComboBoxEntry(liststore, 0) combo.connect("changed", self.combo_changed, None) combo.set_active_iter(iter) self.topvbox.pack_start(combo, False, False, 0) self.topvbox.pack_start(self.tree.treeview, True, True, 0) self.ui_target.add(self.topvbox) self.ui_target.show_all() return
def register(self): self.topvbox = gtk.VBox(False, 0) self.table = helpers.typical_io_table([("Oven I set", 'o'), ("Egun V set", "o"), ("Egun bias set", 'o'), ("Endcap V set", 'o'), ("RFamp set", 'o'), ("RFfrq set", 'o')]) self.tree = helpers.typical_ncol_tree([ (gobject.TYPE_STRING, 'setting', 0), (gobject.TYPE_DOUBLE, 'value', 1) ]) self.tree.add_row("Oven time", 120) self.tree.add_row("Egun time", 10) self.tree.add_row("Oven I", 4.0) self.tree.add_row("Egun V", 2.5) self.tree.add_row("Egun bias", -20.0) self.tree.add_row("Endcaps V", 20) self.tree.add_row("RF amp", 6.0) self.tree.add_row("RF frq", 6.0) self.tree.restore_state("AutoLoad") self.table.restore_state("AutoLoad") self.topvbox.pack_start(self.tree.treeview, True, True, 0) self.topvbox.pack_start(self.table.table, False, False, 0) self.ui_target.add(self.topvbox) self.ui_target.show_all() return
def register(self): self.topvbox = gtk.VBox(False, 0) self.table = helpers.typical_io_table([("X set", 'o'), ("X read", "i"), ("Y1 read", 'i'), ("Y2 read", "i")]) self.tree = helpers.typical_ncol_tree([ (gobject.TYPE_STRING, 'setting', 0), (gobject.TYPE_DOUBLE, 'value', 1) ]) self.tree.add_row("Start at", 0) self.tree.add_row("End at", 1) self.tree.add_row("Steps", 1000) self.tree.add_row("Y1 Scaling", 1.) self.tree.add_row("Y2 Scaling", 1.) self.tree.add_row("Baseline", 0) self.tree.add_row("Pulse Width", 1.) self.tree.add_row("Pause", .01) self.tree.add_row("Cycle?", 0) self.tree.add_row("Finish at", 0.0) self.tree.restore_state("1DScan") self.table.restore_state("1DScan") self.topvbox.pack_start(self.tree.treeview, True, True, 0) self.topvbox.pack_start(self.table.table, False, False, 0) self.ui_target.add(self.topvbox) self.ui_target.show_all() return
def register(self): self.topvbox = gtk.VBox(False, 0) self.table = helpers.typical_io_table([ ("X set", 'o'), ("Y set", "o"), ("X read", 'i'), ("Y read", 'i'), ("Z read", 'i')]) self.tree = helpers.typical_ncol_tree([(gobject.TYPE_STRING, 'setting', 0), (gobject.TYPE_DOUBLE, 'value', 1)]) self.tree.add_row("Start x at", 0) self.tree.add_row("End x at", 1) self.tree.add_row("Start y at", 0) self.tree.add_row("End y at", 1) self.tree.add_row("Steps in x dir", 1000) self.tree.add_row("Steps in y dir", 1000) self.tree.add_row("Z Scaling", 1.0) self.tree.add_row("Pause X", .01) self.tree.add_row("Pause Y", .01) self.tree.add_row("Finish X at", 0.0) self.tree.add_row("Finish Y at", 0.0) self.tree.restore_state("2DScan") self.table.restore_state("2DScan") self.topvbox.pack_start(self.tree.treeview, True, True, 0) self.topvbox.pack_start(self.table.table, False, False, 0) self.ui_target.add(self.topvbox) self.ui_target.show_all() return
def register(self): self.topvbox = gtk.VBox(False, 0) self.table = helpers.typical_io_table([("X set", "o"), ("X read", "i"), ("Y read", "i")]) self.tree = helpers.typical_ncol_tree([(gobject.TYPE_STRING, "setting", 0), (gobject.TYPE_DOUBLE, "value", 1)]) self.tree.add_row("Start at", 0) self.tree.add_row("End at", 1) self.tree.add_row("Steps", 1000) self.tree.add_row("Y Scaling", 1.0) self.tree.add_row("Pause", 0.01) self.tree.add_row("Finish at", 0.0) self.tree.restore_state("LinFit") self.table.restore_state("LinFit") self.topvbox.pack_start(self.tree.treeview, True, True, 0) self.topvbox.pack_start(self.table.table, False, False, 0) self.ui_target.add(self.topvbox) self.ui_target.show_all() return
def register(self): self.topvbox = gtk.VBox(False, 0) self.table = helpers.typical_io_table([ ("Set", 'o'), ("Read", "i")]) self.tree = helpers.typical_ncol_tree([(gobject.TYPE_STRING, 'setting', 0),(gobject.TYPE_DOUBLE, 'value', 1)]) self.tree.add_row("Start at", 0) self.tree.add_row("Setpoint", 0) self.tree.add_row("Upper Bound", 10.0) self.tree.add_row("Lower Bound", -10.0) self.tree.add_row("Read Scaling", 1.) self.tree.add_row("Lower Read Cutoff", 1.) self.tree.add_row("Upper Read Cutoff", 710.96500) self.tree.add_row("P Gain", -200.) self.tree.add_row("I Gain", .1) self.tree.add_row("Pause", 1.) self.tree.restore_state("PIDlock") self.table.restore_state("PIDlock") self.topvbox.pack_start(self.tree.treeview, True, True, 0) self.topvbox.pack_start(self.table.table, False, False, 0) self.ui_target.add(self.topvbox) self.ui_target.show_all() return