def _make_imshow_box(self): self.output_box = OutputList([field.label for field in per_image_fields]) radio_box = make_radio_list([("Image", (self.imshow,)), ("Raw Image", (self.raw_imshow,)), ("X axis spectra", (self.x_spectra,)), ("Edge", (self.edge,)), ("B&W", (self.threshold,))], self.radio_callback) marker_box = make_radio_list([("None", (self.noop,)), ("marker", (self.marker,)), ("stars", (self.stars,)), ("threshold", (self.threshold_points,))], self.marker_callback) button_box = self.make_left_right_arrows(self.parent.image_spin) radio_box.pack_start(marker_box, False, False, 0) radio_box.pack_start(button_box, False, False, 0) self.display_button = make_button("Display", self.display) self.display16_button = make_button("Display x16", self.display16) self.comment, comment_box = make_entry_button(64, "comment", self.add_comment) disp_box = make_box(gtk.HBox, [self.display_button, self.display16_button]) radio_box.pack_start(disp_box, False, False, 0) radio_box.pack_start(comment_box, False, False, 0) vbox = make_box(gtk.VBox, [self.output_box.box, radio_box]) box = gtk.HBox() box.pack_start(vbox, False, False, 0) box.pack_start(self.image_box, True, True, 0) return box
def _make_box(self): radio_box = make_radio_list([("Image Fields", (self.image_hist, per_image_fields)), ("Image Data", (self.data_hist, [])), ("Image Stars", (self.image_stars_hist, per_star_fields)), ("Star Fields", (self.star_hist, per_image_fields + per_star_fields)), ("Sky Value", (self.sky_value_hist, []))], self.radio_callback) self.min_spin = make_float_spinner(0, 0, 1, 0.1) self.max_spin = make_float_spinner(1, 0, 1, 0.1) self.output_box = OutputList(["N: ", "mean: ", "stddev: "]) button = make_button("set", self.replot) self.bin_spin = make_integer_spinner(5, 1000) radio_box.pack_start(make_box(gtk.HBox, [self.min_spin, self.max_spin, button]), False, False, 0) radio_box.pack_start(self.bin_spin, False, False, 0) radio_box.pack_start(self.output_box.box, False, False, 0) hbox = gtk.HBox() hbox.pack_start(radio_box, False, False, 0) hbox.pack_start(self.image_box) return hbox
def _make_box(self): radio_box = make_radio_list([("XY plot", (self.xy_plot,)), ("Generic Plot", (self.full_plot,))], self.radio_callback) button_box = self.make_left_right_arrows(self.parent.star_spin) left_box = make_box(gtk.VBox, [radio_box, button_box]) hbox = gtk.HBox() hbox.pack_start(left_box, False, False, 0) hbox.pack_start(self.image_box) return hbox