code stringlengths 3 6.57k |
|---|
QtWidgets.QComboBox() |
self.component_combobox.setView(QtWidgets.QListView() |
self.component_combobox.addItems(strain_components) |
self.component_combobox.currentTextChanged.connect(self.toggleKeyInBox) |
self.main_layout.addWidget(self.component_combobox) |
self.main_layout.addSpacing(spacing) |
QtWidgets.QHBoxLayout() |
QtWidgets.QPushButton(self.title) |
self.execute_button.clicked.connect(self.executeButtonClicked) |
button_layout.addWidget(self.execute_button) |
button_layout.addStretch(1) |
self.createKeyInBox() |
QtWidgets.QCheckBox('Reverse Direction of Vector') |
self.main_layout.addWidget(self.reverse_checkbox) |
self.main_layout.addSpacing(spacing) |
self.main_layout.addLayout(button_layout) |
self.main_layout.addStretch(1) |
self.setLayout(self.main_layout) |
self.parent_model.measurement_points_changed.connect(self.updatePointList) |
self.parent_model.measurement_vectors_changed.connect(self.updateAlignment) |
self.parent.scenes.rendered_alignment_changed.connect(self.alignment_combobox.setCurrentIndex) |
self.setMinimumWidth(450) |
updatePointList(self) |
self.points_combobox.clear() |
point_list.extend(['{}'.format(i+1) |
range(self.parent_model.measurement_points.size) |
self.points_combobox.addItems(point_list) |
updateAlignment(self) |
self.alignment_combobox.count() |
self.alignment_combobox.clear() |
format(i + 1) |
range(align_count) |
alignment_list.append('Add New...') |
self.alignment_combobox.addItems(alignment_list) |
self.alignment_combobox.setCurrentIndex(self.parent.scenes.rendered_alignment) |
addNewAlignment(self, index) |
self.alignment_combobox.count() |
self.alignment_combobox.insertItem(index, '{}'.format(index + 1) |
self.alignment_combobox.setCurrentIndex(index) |
changeRenderedAlignment(self, index) |
self.parent.scenes.changeRenderedAlignment(index) |
self.parent.scenes.changeVisibility(Attributes.Vectors, False) |
toggleKeyInBox(self, selected_text) |
StrainComponents(selected_text) |
self.key_in_box.setVisible(True) |
self.form_group.validateGroup() |
self.key_in_box.setVisible(False) |
self.execute_button.setEnabled(True) |
createKeyInBox(self) |
QtWidgets.QWidget(self) |
QtWidgets.QVBoxLayout() |
FormGroup(FormGroup.Layout.Horizontal) |
FormControl('X', 1.0, required=True, number=True, decimals=7) |
self.x_axis.range(-1.0, 1.0) |
FormControl('Y', 0.0, required=True, number=True, decimals=7) |
self.y_axis.range(-1.0, 1.0) |
FormControl('Z', 0.0, required=True, number=True, decimals=7) |
self.z_axis.range(-1.0, 1.0) |
self.form_group.addControl(self.x_axis) |
self.form_group.addControl(self.y_axis) |
self.form_group.addControl(self.z_axis) |
self.form_group.groupValidation.connect(self.formValidation) |
layout.addWidget(self.form_group) |
self.key_in_box.setLayout(layout) |
self.main_layout.addWidget(self.key_in_box) |
self.toggleKeyInBox(self.component_combobox.currentText() |
formValidation(self, is_valid) |
self.execute_button.setDisabled(True) |
np.linalg.norm([self.x_axis.value, self.y_axis.value, self.z_axis.value]) |
self.x_axis.validation_label.setText('') |
self.execute_button.setEnabled(True) |
self.x_axis.validation_label.setText('Bad Normal') |
executeButtonClicked(self) |
self.points_combobox.currentIndex() |
self.component_combobox.currentText() |
StrainComponents(selected_text) |
self.alignment_combobox.currentIndex() |
self.detector_combobox.currentIndex() |
self.reverse_checkbox.checkState() |
closeEvent(self, event) |
self.parent.scenes.changeRenderedAlignment(0) |
event.accept() |
PickPointDialog(QtWidgets.QWidget) |
__init__(self, parent) |
super() |
__init__(parent) |
self.parent.scenes.switchToSampleScene() |
self.setMinimumWidth(500) |
QtGui.QPen(QtGui.QColor(255, 0, 0) |
QtGui.QPen(QtGui.QColor(200, 0, 0) |
QtWidgets.QVBoxLayout() |
self.setLayout(self.main_layout) |
QtWidgets.QHBoxLayout() |
path_for('question.png') |
self.help_button.clicked.connect(self.showHelp) |
path_for('refresh.png') |
QtWidgets.QPushButton('Add Points') |
self.execute_button.clicked.connect(self.addPoints) |
button_layout.addWidget(self.help_button) |
button_layout.addWidget(self.reset_button) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.