def group_box_dset_table(self, title='datasets'):
      """create a group box with layout
            QPushB(get subject dsets)   QPushB(clear dsets)   QPushB(help)
            QLIB.DatasetTableWidget(sid, dset): common dir, wildard, #dsets

         save in gbox.PB_get, PB_clear, PB_help
                      STable_dsets
                      Label_num_entries
                      Label_top_dir
                      Label_group_name
         have gbox.frame
         for controlling uvars: dsetsA/B, labelA/B, betasA/B
      """
      gbox = QLIB.get_checked_group_box(title, cb_check=self.gbox_clicked)
      mainlayout = gbox.mainlayout

      # --------------------------------------------------
      # create buttons
      labels = ['get subj dsets', 'copy other table', 'clear', 'help']
      tips   = ['populate table with subject dataset list',
                'copy datasets/sids from other table',
                'delete all table entries', 'display help for this section']
      bwidget = QLIB.create_button_list_widget(labels, cb=self.CB_gbox_PushB,
                                               tips=tips)
      bwidget.bdict['help'].setIcon(self.style().standardIcon(
                            QtGui.QStyle.SP_MessageBoxQuestion))
      # assign buttons to main variables
      gbox.PB_get   = bwidget.bdict['get subj dsets']
      gbox.PB_copy  = bwidget.bdict['copy other table']
      gbox.PB_clear = bwidget.bdict['clear']
      gbox.PB_help  = bwidget.bdict['help']

      # create a DatasetTableWidget with those buttons
      dtw = QLIB.DatasetTableWidget(gbox, button_widgets=[bwidget],
                                          verb=self.verb)
      gbox.dset_table = dtw
      mainlayout.addWidget(dtw)

      # add a grid layout for group name, data index, t-stat index
      labels = ['set name (group or class)',
                'data index/label',
                't-stat index/label (MEMA)']
      tips = ['specify a group or category name (e.g. adults or houses)',
              'specify a sub-brick index or label for data volume',
              'specify index or label for t-stat volume (only for 3dMEMA)']
      widget = QLIB.create_label_line_grid(labels, tips, cb=self.CB_line_text)
      gbox.Line_name = widget.gvars.line_list[0]
      gbox.Line_dind = widget.gvars.line_list[1]
      gbox.Line_tind = widget.gvars.line_list[2]

      mainlayout.addWidget(widget)

      return gbox
   def group_box_MEMA(self):
      """create a group box with layout
         ... for controlling uvars: dsetsA, labelA, betasA
      """

      prog = '3dMEMA'
      gbox = QLIB.get_checked_group_box('%s options'%prog, ltype='G',
                                        cb_check=self.gbox_clicked)
      mainlayout = gbox.mainlayout

      label= QLIB.make_label('other options:',
                             'any other %s options to include in command'%prog)
      te = QtGui.QTextEdit()

      mainlayout.addWidget(label, 0, 0)
      mainlayout.addWidget(te, 0, 1, 3, 3)

      self.gvars.TE_MEMA = te

      return gbox