16 ExtractDialog.setSizeGripEnabled(True) |
16 ExtractDialog.setSizeGripEnabled(True) |
17 self.verticalLayout = QtWidgets.QVBoxLayout(ExtractDialog) |
17 self.verticalLayout = QtWidgets.QVBoxLayout(ExtractDialog) |
18 self.verticalLayout.setObjectName("verticalLayout") |
18 self.verticalLayout.setObjectName("verticalLayout") |
19 self.hboxlayout = QtWidgets.QHBoxLayout() |
19 self.hboxlayout = QtWidgets.QHBoxLayout() |
20 self.hboxlayout.setObjectName("hboxlayout") |
20 self.hboxlayout.setObjectName("hboxlayout") |
21 self.label = QtWidgets.QLabel(ExtractDialog) |
21 self.label = QtWidgets.QLabel(parent=ExtractDialog) |
22 self.label.setObjectName("label") |
22 self.label.setObjectName("label") |
23 self.hboxlayout.addWidget(self.label) |
23 self.hboxlayout.addWidget(self.label) |
24 self.newNameEdit = QtWidgets.QLineEdit(ExtractDialog) |
24 self.newNameEdit = QtWidgets.QLineEdit(parent=ExtractDialog) |
25 self.newNameEdit.setClearButtonEnabled(True) |
25 self.newNameEdit.setClearButtonEnabled(True) |
26 self.newNameEdit.setObjectName("newNameEdit") |
26 self.newNameEdit.setObjectName("newNameEdit") |
27 self.hboxlayout.addWidget(self.newNameEdit) |
27 self.hboxlayout.addWidget(self.newNameEdit) |
28 self.verticalLayout.addLayout(self.hboxlayout) |
28 self.verticalLayout.addLayout(self.hboxlayout) |
29 self.similarCheckBox = QtWidgets.QCheckBox(ExtractDialog) |
29 self.similarCheckBox = QtWidgets.QCheckBox(parent=ExtractDialog) |
30 self.similarCheckBox.setChecked(True) |
30 self.similarCheckBox.setChecked(True) |
31 self.similarCheckBox.setObjectName("similarCheckBox") |
31 self.similarCheckBox.setObjectName("similarCheckBox") |
32 self.verticalLayout.addWidget(self.similarCheckBox) |
32 self.verticalLayout.addWidget(self.similarCheckBox) |
33 self.globalCheckBox = QtWidgets.QCheckBox(ExtractDialog) |
33 self.globalCheckBox = QtWidgets.QCheckBox(parent=ExtractDialog) |
34 self.globalCheckBox.setObjectName("globalCheckBox") |
34 self.globalCheckBox.setObjectName("globalCheckBox") |
35 self.verticalLayout.addWidget(self.globalCheckBox) |
35 self.verticalLayout.addWidget(self.globalCheckBox) |
36 self.buttonBox = QtWidgets.QDialogButtonBox(ExtractDialog) |
36 self.buttonBox = QtWidgets.QDialogButtonBox(parent=ExtractDialog) |
37 self.buttonBox.setOrientation(QtCore.Qt.Orientation.Horizontal) |
37 self.buttonBox.setOrientation(QtCore.Qt.Orientation.Horizontal) |
38 self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.Cancel|QtWidgets.QDialogButtonBox.StandardButton.Ok) |
38 self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.Cancel|QtWidgets.QDialogButtonBox.StandardButton.Ok) |
39 self.buttonBox.setObjectName("buttonBox") |
39 self.buttonBox.setObjectName("buttonBox") |
40 self.verticalLayout.addWidget(self.buttonBox) |
40 self.verticalLayout.addWidget(self.buttonBox) |
41 |
41 |
50 ExtractDialog.setWindowTitle(_translate("ExtractDialog", "Extract")) |
50 ExtractDialog.setWindowTitle(_translate("ExtractDialog", "Extract")) |
51 self.label.setText(_translate("ExtractDialog", "New Name:")) |
51 self.label.setText(_translate("ExtractDialog", "New Name:")) |
52 self.newNameEdit.setToolTip(_translate("ExtractDialog", "Enter the new name")) |
52 self.newNameEdit.setToolTip(_translate("ExtractDialog", "Enter the new name")) |
53 self.similarCheckBox.setText(_translate("ExtractDialog", "Extract similar expressions/statements")) |
53 self.similarCheckBox.setText(_translate("ExtractDialog", "Extract similar expressions/statements")) |
54 self.globalCheckBox.setText(_translate("ExtractDialog", "Make the extracted object global")) |
54 self.globalCheckBox.setText(_translate("ExtractDialog", "Make the extracted object global")) |
55 |
|
56 |
|
57 if __name__ == "__main__": |
|
58 import sys |
|
59 app = QtWidgets.QApplication(sys.argv) |
|
60 ExtractDialog = QtWidgets.QDialog() |
|
61 ui = Ui_ExtractDialog() |
|
62 ui.setupUi(ExtractDialog) |
|
63 ExtractDialog.show() |
|
64 sys.exit(app.exec()) |
|