def create_widgets(self):
        """Build basic components of dialog."""
        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
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
Build basic components of dialog.