code: def create_widgets(self):
          
          self.bbox = QDialogButtonBox(
                  QDialogButtonBox.Ok | QDialogButtonBox.Cancel)
          self.idx_ok = self.bbox.button(QDialogButtonBox.Ok)
          self.idx_cancel = self.bbox.button(QDialogButtonBox.Cancel)
  
          self.idx_group = FormMenu([gr['name'] for gr in self.groups])
  
          chan_box = QListWidget()
          self.idx_chan = chan_box
  
          stage_box = QListWidget()
          stage_box.addItems(STAGE_NAME)
          stage_box.setSelectionMode(QAbstractItemView.ExtendedSelection)
          self.idx_stage = stage_box
  
          cycle_box = QListWidget()
          cycle_box.setSelectionMode(QAbstractItemView.ExtendedSelection)
          self.idx_cycle = cycle_box
docs: Build basic components of dialog.