- def createNewOutput(self, name, description, checked=True, enabled=True):
- """
- Create a groupBox for the given pieces of information. Returns the
- groupBox and the checkBox
- """
- check = QCheckBox(description)
- if checked:
- check.setCheckState(Qt.Checked)
- else:
- check.setCheckState(Qt.Unchecked)
- groupLayout = QVBoxLayout()
- groupLayout.addWidget(check)
- group = QGroupBox(name)
- group.setSizePolicy(QSizePolicy.Expanding, QSizePolicy.Maximum)
- group.setLayout(groupLayout)
- group.setEnabled(enabled)
- return group, check
\ No newline at end of file