CheckBoxDialog

class cgp_generic_utils.qt.CheckBoxDialog(title, label, data, size=None, parent=None, isFrameless=False)

Bases: cgp_generic_utils.qt.BaseDialog

dialog with checkbox checking

addCheckbox(label, isChecked)

add a new check box to the dialog

Parameters:
  • label (str) – label of the checkbox
  • isChecked (bool) – True checkbox is checked - False checkbox is not checked
Returns:

the added checkbox

Return type:

PySide2.QtWidgets.QCheckBox

validation()

validation of the dialog

Returns:Cancel : None - Ok : {checkBoxLabel1: isChecked1, checkBoxLabel2: isChecked2 …}
Return type:None or dict