Ejemplo n.º 1
0
 def _create_widgets(self):
     self._title_lbl = st.SubTitleLabel(self, "Scaling options")
     self._xmin_le = st.FloatLabEnt(self, "X-axis min:", 0.0)
     self._xmax_le = st.FloatLabEnt(self, 'X-axis max:', 1.0)
     self._ymin_le = st.FloatLabEnt(self, 'Y-axis min:', 0.0)
     self._ymax_le = st.FloatLabEnt(self, 'Y-axis max:', 1.0)
     self._scale_btn = st.Button(self, "Scale", self.scale)
     self._autoscale_btn = st.Button(self, "Autoscale", self.autoscale)
Ejemplo n.º 2
0
 def _create_widgets(self):
     self._title_lbl = st.SubTitleLabel(self, "Label options")
     self._title_btn = st.Button(self, "Add title", self.set_title)
     self._xlabel_btn = st.Button(self, "Add x-axis label", self.set_xlabel)
     self._ylabel_btn = st.Button(self, "Add y-axis label", self.set_ylabel)
     self._title_entry = st.StringEntry(self, "Title")
     self._xlabel_entry = st.StringEntry(self, "x axis")
     self._ylabel_entry = st.StringEntry(self, "y axis")
Ejemplo n.º 3
0
 def _create_optional_widgets(self):
     if self._display_args.show_set_constants is True:
         self._const_btn = st.Button(self, "Set constants", self.set_const)
         self._const_btn.grid(row=0, column=0)
Ejemplo n.º 4
0
 def _create_widgets(self):
     self._update_btn = st.Button(self, "Redraw plot", self.update_plot)
     self._remove_btn = st.Button(self, "Remove plot", self.delete_plot)
Ejemplo n.º 5
0
 def _create_widgets(self):
     self._title_lbl = st.TitleLabel(self, "Plot Options")
     self._add_plot_btn = st.Button(self, "Add plot", self.add_plot)
     self._type_cmb = st.StringCombo(self, self._c.get_functions())
     self._plots_title_lbl = st.SubTitleLabel(self, text="Plots")
Ejemplo n.º 6
0
 def _create_widgets(self):
     self.save_and_close_btn = st.Button(self, "Save and close",
                                         self.save_and_close)
     self.close_btn = st.Button(self, "Close", self.close)
Ejemplo n.º 7
0
 def _create_widgets(self):
     self._title_lbl = st.TitleLabel(self, "Export Options")
     self._export_lbl = st.Label(self, "Export type:")
     self._export_rdb = st.Radiobuttons(self, ["PNG image", "LaTeX data"])
     self._file_le = st.StringLabEnt(self, "File name:", "graph")
     self._export_btn = st.Button(self, "Export", self.export)