code: def create_dialog(self):
          
          box0 = QGroupBox('Info')
  
          event_box = QListWidget()
          event_box.setSelectionMode(QAbstractItemView.ExtendedSelection)
          self.idx_evt_type = event_box
  
          self.idx_merge_to = FormMenu(['earlier onset event', 
                                        'longer duration event'])
          self.merge_to = self.idx_merge_to.currentText()
  
          self.min_interval = FormFloat()
          self.cross_chan = FormBool('Merge across channels')
  
          self.min_interval.set_value(1.0)
          self.cross_chan.setCheckState(Qt.Checked)
  
          flayout = QFormLayout()
          box0.setLayout(flayout)
          flayout.addRow('Event type(s)',
                             self.idx_evt_type)
          flayout.addRow(self.cross_chan)
          flayout.addRow('Merge to...',
                             self.idx_merge_to)
          flayout.addRow('Min. interval (sec)',
                             self.min_interval)
  
          bbox = QDialogButtonBox(
                  QDialogButtonBox.Ok | QDialogButtonBox.Cancel)
          self.idx_ok = bbox.button(QDialogButtonBox.Ok)
          self.idx_cancel = bbox.button(QDialogButtonBox.Cancel)
          bbox.clicked.connect(self.button_clicked)
  
          btnlayout = QHBoxLayout()
          btnlayout.addStretch(1)
          btnlayout.addWidget(bbox)
  
          vlayout = QVBoxLayout()
          vlayout.addWidget(box0)
          vlayout.addStretch(1)
          vlayout.addLayout(btnlayout)
  
          self.setLayout(vlayout)
docs: Create the dialog.