示例#1
0
 def olist(self):
     return optview.OptionsList([
         ("Options", "bias", optwdg.SingleChoiceOptionEntry(
             self, "bias", ['population', 'sample'])),
         ("Options", "matrix type", optwdg.SingleChoiceOptionEntry(
             self, "matsym", ['lower', 'upper', 'symmetrical'])),
         self.cat_olist()
         ])
示例#2
0
 def olist(self):
     return optview.OptionsList([
         ("Return", "Column name", optwdg.SimpleOptionEntry(
             self, 'colname', dostrip=True)),
         ("Function", "x-column", optwdg.SingleChoiceOptionEntry(
             self, "xcol", self.all_cols)),
         ("Function", "y-column", optwdg.SingleChoiceOptionEntry(
             self, "ycol", self.all_cols)),
         ])
示例#3
0
 def olist(self):
     flt = [('Excel files', ('xlsx',))]
     return optview.OptionsList([
         ("Import from", "Filename", optwdg.OpenFileOptionEntry(
             self, "filename", flt)),
         ("Import from", "Format", optwdg.SingleChoiceOptionEntry(
             self, "format", ["xlsx", "plain text"])),
         ])
示例#4
0
 def olist(self):
     return optview.OptionsList([
         ("Merging", "Algorithm", optwdg.SingleChoiceOptionEntry(
             self, "algo", ['arithmetic mean', 'median',
                            'maximum', 'minimum', 'median+', 'median-'])),
         ("Categories", "Group by", optwdg.CheckTreeOptionEntry(
             self, "cat", 1)),
         ])
示例#5
0
 def olist(self):
     cshnames = list(self.schemes.keys())
     return optview.OptionsList([
         ("Source", "Column", optwdg.SingleChoiceOptionEntry(
             self, "column", self.clist)),
         ("Source", "Range", optwdg.SingleChoiceOptionEntry(
             self, "range", ["Local", "Global"])),
         ("Color scheme", "Preset", optwdg.SingleChoiceWImgOptionEntry(
             self, "preset", cshnames, self.pics)),
         ("Color scheme", "None color", optwdg.SingleChoiceColorOptionEntry(
             self, "none_color",
             list(self.defcolors.keys()), list(self.defcolors.values()))),
         ("Color scheme", "Reversed", optwdg.BoolOptionEntry(
             self, "reversed")),
         ("Color scheme", "Discrete", optwdg.BoolOptionEntry(
             self, "discrete")),
         ("Color scheme", "Discrete count", optwdg.BoundedIntOptionEntry(
             self, "discrete_count", minv=-1)),
         ])
示例#6
0
 def olist(self):
     flt = [('Excel files', ('xlsx',))]
     return optview.OptionsList([
         ("Export to", "Filename", optwdg.SaveFileOptionEntry(
             self, "filename", flt)),
         ("Export to", "Format", optwdg.SingleChoiceOptionEntry(
             self, "format", ["xlsx", "plain text"])),
         ("Additional", "Include caption", optwdg.BoolOptionEntry(
             self, "with_caption")),
         ("Additional", "Include id column", optwdg.BoolOptionEntry(
             self, "with_id")),
         ("Additional", "Preserve formatting", optwdg.BoolOptionEntry(
             self, "with_formatting")),
         ("Additional", "Enums as integers", optwdg.BoolOptionEntry(
             self, "numeric_enums")),
         ("Additional", "Non-unique groups", optwdg.SingleChoiceOptionEntry(
             self, "grouped_categories", ['None', 'Comma separated',
                                          'Unique count'])),
         ])
示例#7
0
 def olist(self):
     funlist = ['average', 'median', 'max', 'min', 'sum', 'product']
     return optview.OptionsList([
         ("Return", "Column name", optwdg.SimpleOptionEntry(
             self, 'colname', dostrip=True)),
         ("Function", "function", optwdg.SingleChoiceOptionEntry(
             self, "func", funlist)),
         ("Function", "use before grouping", optwdg.BoolOptionEntry(
             self, "before_grouping")),
         self.cat_olist(),
         ])
示例#8
0
 def olist(self):
     return optview.OptionsList([
         ("Return", "Column name", optwdg.SimpleOptionEntry(
             self, 'colname', dostrip=True)),
         ("Return", "Regression type", optwdg.SingleChoiceOptionEntry(
             self, "regtp", self.regtp)),
         ("Function", "x-column", optwdg.SingleChoiceOptionEntry(
             self, "xcol", self.all_cols)),
         ("Function", "y-column", optwdg.SingleChoiceOptionEntry(
             self, "ycol", self.all_cols)),
         ("Output columns", "A (slope)", optwdg.BoolOptionEntry(
             self, "a")),
         ("Output columns", "B (intercept)", optwdg.BoolOptionEntry(
             self, "b")),
         ("Output columns", "std error", optwdg.BoolOptionEntry(
             self, "stderr")),
         ("Output columns", "slope error", optwdg.BoolOptionEntry(
             self, "slopeerr")),
         ("Output columns", "correlation coef.", optwdg.BoolOptionEntry(
             self, "corrcoef")),
         ])
示例#9
0
 def olist(self):
     return optview.OptionsList([
         ("Method", "Distance method",
          optwdg.SingleChoiceOptionEntry(
              self, 'distance_method',
              self.iopts.possible_distance_methods)),
         ("Representation", "Font size",
          optwdg.BoundedIntOptionEntry(self, "font_size", 3, 100)),
         ("Representation", "Show slider",
          optwdg.BoolOptionEntry(self, "show_slider")),
         ("Representation", "Use colors",
          optwdg.BoolOptionEntry(self, "use_colors")),
     ])
示例#10
0
 def olist(self):
     return optview.OptionsList([
         ("Main table", "Font size", optwdg.BoundedIntOptionEntry(
             self, "basic_font_size", minv=3)),
         ("Main table", "Boolean values as", optwdg.SingleChoiceOptionEntry(
             self, "show_bool_as", ['icons', 'codes', 'Yes/No'])),
         ("Main table", "Real number digits", optwdg.BoundedIntOptionEntry(
             self, "real_numbers_prec", minv=0)),
         ("External programs", "Xlsx editor", optwdg.OpenFileOptionEntry(
             self, "external_xlsx_editor", [])),
         ("External programs", "Text editor", optwdg.OpenFileOptionEntry(
             self, "external_txt_editor", [])),
         ("Behaviour", "Open recent db on start", optwdg.BoolOptionEntry(
             self, "open_recent_db_on_start")),
         ])