Example #1
0
 def olist(self):
     return optview.OptionsList([
         ("Import", "Sheet name",
          optwdg.SingleChoiceEditOptionEntry(self, "sheetname",
                                             self.sheets)),
         ("Import", "New table name",
          optwdg.SimpleOptionEntry(self, "tabname", dostrip=True)),
         ("Ranges", "Data range",
          optwdg.SimpleOptionEntry(self, 'range', dostrip=True)),
         ("Ranges", "Caption from first row",
          optwdg.BoolOptionEntry(self, "read_cap")),
     ])
Example #2
0
 def olist(self):
     return optview.OptionsList([
         ("New table", "Source table name", optwdg.SimpleOptionEntry(
             self, 'tablename', dostrip=True)),
         ("New table", "Include source id", optwdg.BoolOptionEntry(
             self, 'include_source_id')),
         ])
Example #3
0
 def olist(self):
     return optview.OptionsList([
         ("Import", "New table name",
          optwdg.SimpleOptionEntry(self, "tabname", dostrip=True)),
         ("Ranges", "First line",
          optwdg.BoundedIntOptionEntry(self, 'firstline', 1)),
         ("Ranges", "Last line",
          optwdg.BoundedIntOptionEntry(self, 'lastline', -1)),
         ("Ranges", "Caption from first row",
          optwdg.BoolOptionEntry(self, "read_cap")),
         ("Format", "Columns separator",
          optwdg.SingleChoiceEditOptionEntry(
              self, "col_sep",
              ["whitespaces", "tabular", ",", "in double quotes"])),
         ("Format", "Max columns count",
          optwdg.BoundedIntOptionEntry(self, "colcount", -1)),
         ("Format", "Row separator",
          optwdg.SingleChoiceEditOptionEntry(
              self, "row_sep", ["newline", ";", "no (use column count)"])),
         ("Format", "Ignore empty lines",
          optwdg.BoolOptionEntry(self, "ignore_blank")),
         ("Format", "Comment sign",
          optwdg.SingleChoiceEditOptionEntry(self, "comment_sign",
                                             ["", "#", "//", "*"])),
     ])
Example #4
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)),
         ])
Example #5
0
 def olist(self):
     return optview.OptionsList([
         ("Basic", "Hide used columns", optwdg.BoolOptionEntry(
             self, "do_hide")),
         ("Basic", "Delimiter", optwdg.SimpleOptionEntry(
             self, "delim")),
         ("Categories", "Column list", optwdg.CheckTreeOptionEntry(
             self, "cat", 1)),
         ])
Example #6
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(),
         ])
Example #7
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")),
         ])
Example #8
0
 def olist(self):
     return optview.OptionsList([
         ("Column name", "Column name", optwdg.SimpleOptionEntry(
             self, 'colname', dostrip=True)),
         ])