def make_xyc_combos(self, fields): self.x_val_combo = make_cb(fields) self.y_val_combo = make_cb(fields) self.c_val_combo = make_cb(fields) self.xyc_box = make_box(gtk.HBox, [self.x_val_combo, self.y_val_combo, self.c_val_combo])
def make_filter_combos(self): self.cam_combo = make_cb(["sky", "sbc"]) self.exp_combo = make_cb(exp_times) self.date_combo = make_cb(date_keys) self.zframe_combo = make_cb(["No z-frames", "only z-frames", "all"]) self.filters = DropDownCheckEntryBox(FILTER_CACHE) save_group = self.make_save_group() self.filter_box = make_box(gtk.HBox, [self.cam_combo, self.exp_combo, self.date_combo, self.zframe_combo, self.filters.box, save_group])
def make_cmap_combo(default="jet"): """ Create a drop ComboBox with all the available matplotlib colourmaps. """ cmap_combo = make_cb(cmapnames + [c + "_r" for c in cmapnames]) cmap_combo.set_active(cmapnames.index(default)) return cmap_combo