def _build_checkbox(self, name, id): checkbox = QCheckBox() checkbox.setText(name) checkbox.data_point_id = id return checkbox