def setupUi(self, Dialog): Dialog.setObjectName("Dialog") Dialog.resize(442, 544) Dialog.setSizeGripEnabled(True) Dialog.setModal(True) self.verticalLayout = QtWidgets.QVBoxLayout(Dialog) self.verticalLayout.setObjectName("verticalLayout") self.toolBox = QtWidgets.QToolBox(Dialog) self.toolBox.setObjectName("toolBox") self.page0 = QtWidgets.QWidget() self.page0.setGeometry(QtCore.QRect(0, 0, 424, 329)) self.page0.setObjectName("page0") self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.page0) self.verticalLayout_2.setObjectName("verticalLayout_2") self.storage_label = QtWidgets.QLabel(self.page0) self.storage_label.setObjectName("storage_label") self.verticalLayout_2.addWidget(self.storage_label) self.storage_list = QtWidgets.QListWidget(self.page0) self.storage_list.setObjectName("storage_list") self.verticalLayout_2.addWidget(self.storage_list) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(":/icons/mechanism.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.toolBox.addItem(self.page0, icon, "") self.page1 = QtWidgets.QWidget() self.page1.setGeometry(QtCore.QRect(0, 0, 171, 121)) self.page1.setObjectName("page1") self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.page1) self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.verticalLayout_3 = QtWidgets.QVBoxLayout() self.verticalLayout_3.setObjectName("verticalLayout_3") self.variables_label = QtWidgets.QLabel(self.page1) self.variables_label.setObjectName("variables_label") self.verticalLayout_3.addWidget(self.variables_label) self.variables_list = QtWidgets.QListWidget(self.page1) self.variables_list.setObjectName("variables_list") self.verticalLayout_3.addWidget(self.variables_list) self.horizontalLayout_2.addLayout(self.verticalLayout_3) self.verticalLayout_4 = QtWidgets.QVBoxLayout() self.verticalLayout_4.setObjectName("verticalLayout_4") self.records_label = QtWidgets.QLabel(self.page1) self.records_label.setObjectName("records_label") self.verticalLayout_4.addWidget(self.records_label) self.records_list = QtWidgets.QListWidget(self.page1) self.records_list.setObjectName("records_list") self.verticalLayout_4.addWidget(self.records_list) self.horizontalLayout_2.addLayout(self.verticalLayout_4) icon1 = QtGui.QIcon() icon1.addPixmap(QtGui.QPixmap(":/icons/motor.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.toolBox.addItem(self.page1, icon1, "") self.page2 = QtWidgets.QWidget() self.page2.setGeometry(QtCore.QRect(0, 0, 259, 121)) self.page2.setObjectName("page2") self.horizontalLayout_3 = QtWidgets.QHBoxLayout(self.page2) self.horizontalLayout_3.setObjectName("horizontalLayout_3") self.verticalLayout_6 = QtWidgets.QVBoxLayout() self.verticalLayout_6.setObjectName("verticalLayout_6") self.structures_label = QtWidgets.QLabel(self.page2) self.structures_label.setObjectName("structures_label") self.verticalLayout_6.addWidget(self.structures_label) self.structures_list = QtWidgets.QListWidget(self.page2) self.structures_list.setObjectName("structures_list") self.verticalLayout_6.addWidget(self.structures_list) self.horizontalLayout_3.addLayout(self.verticalLayout_6) self.verticalLayout_5 = QtWidgets.QVBoxLayout() self.verticalLayout_5.setObjectName("verticalLayout_5") self.triangular_iteration_label = QtWidgets.QLabel(self.page2) self.triangular_iteration_label.setObjectName( "triangular_iteration_label") self.verticalLayout_5.addWidget(self.triangular_iteration_label) self.triangular_iteration_list = QtWidgets.QListWidget(self.page2) self.triangular_iteration_list.setObjectName( "triangular_iteration_list") self.verticalLayout_5.addWidget(self.triangular_iteration_list) self.horizontalLayout_3.addLayout(self.verticalLayout_5) icon2 = QtGui.QIcon() icon2.addPixmap(QtGui.QPixmap(":/icons/collections.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.toolBox.addItem(self.page2, icon2, "") self.page3 = QtWidgets.QWidget() self.page3.setGeometry(QtCore.QRect(0, 0, 98, 119)) self.page3.setObjectName("page3") self.verticalLayout_7 = QtWidgets.QVBoxLayout(self.page3) self.verticalLayout_7.setObjectName("verticalLayout_7") self.results_label = QtWidgets.QLabel(self.page3) self.results_label.setObjectName("results_label") self.verticalLayout_7.addWidget(self.results_label) self.results_list = QtWidgets.QListWidget(self.page3) self.results_list.setObjectName("results_list") self.verticalLayout_7.addWidget(self.results_list) icon3 = QtGui.QIcon() icon3.addPixmap(QtGui.QPixmap(":/icons/DimensionalSynthesis.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.toolBox.addItem(self.page3, icon3, "") self.verticalLayout.addWidget(self.toolBox) self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem) self.button_box = QtWidgets.QDialogButtonBox(Dialog) self.button_box.setStandardButtons(QtWidgets.QDialogButtonBox.Close) self.button_box.setObjectName("button_box") self.horizontalLayout.addWidget(self.button_box) self.verticalLayout.addLayout(self.horizontalLayout) self.retranslateUi(Dialog) self.button_box.rejected.connect(Dialog.reject) QtCore.QMetaObject.connectSlotsByName(Dialog)
def setupUi(self, Dialog): Dialog.setObjectName("Dialog") Dialog.resize(461, 559) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(":/icons/synthesis.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) Dialog.setWindowIcon(icon) Dialog.setSizeGripEnabled(True) Dialog.setModal(True) self.verticalLayout = QtWidgets.QVBoxLayout(Dialog) self.verticalLayout.setObjectName("verticalLayout") self.formLayout = QtWidgets.QFormLayout() self.formLayout.setObjectName("formLayout") self.max_gen_option = QtWidgets.QRadioButton(Dialog) self.max_gen_option.setChecked(True) self.max_gen_option.setObjectName("max_gen_option") self.formLayout.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.max_gen_option) self.max_gen = QtWidgets.QSpinBox(Dialog) self.max_gen.setMinimum(0) self.max_gen.setMaximum(5000) self.max_gen.setSingleStep(100) self.max_gen.setProperty("value", 1000) self.max_gen.setObjectName("max_gen") self.formLayout.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.max_gen) self.min_fit_option = QtWidgets.QRadioButton(Dialog) self.min_fit_option.setObjectName("min_fit_option") self.formLayout.setWidget(3, QtWidgets.QFormLayout.LabelRole, self.min_fit_option) self.min_fit = QtWidgets.QDoubleSpinBox(Dialog) self.min_fit.setEnabled(False) self.min_fit.setMaximum(2000.0) self.min_fit.setProperty("value", 25.0) self.min_fit.setObjectName("min_fit") self.formLayout.setWidget(3, QtWidgets.QFormLayout.FieldRole, self.min_fit) self.report_label = QtWidgets.QLabel(Dialog) self.report_label.setObjectName("report_label") self.formLayout.setWidget(5, QtWidgets.QFormLayout.LabelRole, self.report_label) self.report = QtWidgets.QSpinBox(Dialog) self.report.setProperty("value", 10) self.report.setObjectName("report") self.formLayout.setWidget(5, QtWidgets.QFormLayout.FieldRole, self.report) self.max_time_option = QtWidgets.QRadioButton(Dialog) self.max_time_option.setObjectName("max_time_option") self.formLayout.setWidget(4, QtWidgets.QFormLayout.LabelRole, self.max_time_option) self.max_time = QtWidgets.QWidget(Dialog) self.max_time.setEnabled(False) self.max_time.setObjectName("max_time") self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.max_time) self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.max_time_h = QtWidgets.QSpinBox(self.max_time) self.max_time_h.setObjectName("max_time_h") self.horizontalLayout_2.addWidget(self.max_time_h) self.label_2 = QtWidgets.QLabel(self.max_time) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.label_2.sizePolicy().hasHeightForWidth()) self.label_2.setSizePolicy(sizePolicy) self.label_2.setObjectName("label_2") self.horizontalLayout_2.addWidget(self.label_2) self.max_time_m = QtWidgets.QSpinBox(self.max_time) self.max_time_m.setMaximum(59) self.max_time_m.setProperty("value", 15) self.max_time_m.setObjectName("max_time_m") self.horizontalLayout_2.addWidget(self.max_time_m) self.label_3 = QtWidgets.QLabel(self.max_time) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.label_3.sizePolicy().hasHeightForWidth()) self.label_3.setSizePolicy(sizePolicy) self.label_3.setObjectName("label_3") self.horizontalLayout_2.addWidget(self.label_3) self.max_time_s = QtWidgets.QSpinBox(self.max_time) self.max_time_s.setMaximum(59) self.max_time_s.setSingleStep(10) self.max_time_s.setObjectName("max_time_s") self.horizontalLayout_2.addWidget(self.max_time_s) self.formLayout.setWidget(4, QtWidgets.QFormLayout.FieldRole, self.max_time) self.label = QtWidgets.QLabel(Dialog) self.label.setObjectName("label") self.formLayout.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.label) self.pop_size = QtWidgets.QSpinBox(Dialog) self.pop_size.setMinimum(10) self.pop_size.setMaximum(10000) self.pop_size.setSingleStep(10) self.pop_size.setObjectName("pop_size") self.formLayout.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.pop_size) self.verticalLayout.addLayout(self.formLayout) self.splitter = QtWidgets.QSplitter(Dialog) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.splitter.sizePolicy().hasHeightForWidth()) self.splitter.setSizePolicy(sizePolicy) self.splitter.setOrientation(QtCore.Qt.Horizontal) self.splitter.setObjectName("splitter") self.alg_table = QtWidgets.QTableWidget(self.splitter) self.alg_table.setObjectName("alg_table") self.alg_table.setColumnCount(2) self.alg_table.setRowCount(0) item = QtWidgets.QTableWidgetItem() self.alg_table.setHorizontalHeaderItem(0, item) item = QtWidgets.QTableWidgetItem() self.alg_table.setHorizontalHeaderItem(1, item) self.alg_table.horizontalHeader().setDefaultSectionSize(150) self.alg_table.horizontalHeader().setMinimumSectionSize(150) self.verticalLayout.addWidget(self.splitter) self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") self.reset_button = QtWidgets.QPushButton(Dialog) self.reset_button.setObjectName("reset_button") self.horizontalLayout.addWidget(self.reset_button) spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem) self.button_box = QtWidgets.QDialogButtonBox(Dialog) self.button_box.setOrientation(QtCore.Qt.Horizontal) self.button_box.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel | QtWidgets.QDialogButtonBox.Ok) self.button_box.setObjectName("button_box") self.horizontalLayout.addWidget(self.button_box) self.verticalLayout.addLayout(self.horizontalLayout) self.retranslateUi(Dialog) self.button_box.accepted.connect(Dialog.accept) self.button_box.rejected.connect(Dialog.reject) self.max_gen_option.toggled['bool'].connect(self.max_gen.setEnabled) self.min_fit_option.toggled['bool'].connect(self.min_fit.setEnabled) self.max_time_option.toggled['bool'].connect(self.max_time.setEnabled) QtCore.QMetaObject.connectSlotsByName(Dialog)
def setupUi(self, Dialog): Dialog.setObjectName("Dialog") Dialog.resize(354, 528) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(":/icons/bearing.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) Dialog.setWindowIcon(icon) Dialog.setSizeGripEnabled(True) Dialog.setModal(True) self.horizontalLayout_3 = QtWidgets.QHBoxLayout(Dialog) self.horizontalLayout_3.setObjectName("horizontalLayout_3") self.verticalLayout = QtWidgets.QVBoxLayout() self.verticalLayout.setObjectName("verticalLayout") self.name_label = QtWidgets.QLabel(Dialog) self.name_label.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop) self.name_label.setObjectName("name_label") self.verticalLayout.addWidget(self.name_label) self.name_box = QtWidgets.QComboBox(Dialog) self.name_box.setObjectName("name_box") self.verticalLayout.addWidget(self.name_box) self.color_label = QtWidgets.QLabel(Dialog) self.color_label.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop) self.color_label.setObjectName("color_label") self.verticalLayout.addWidget(self.color_label) self.horizontalLayout_2 = QtWidgets.QHBoxLayout() self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.color_box = QtWidgets.QComboBox(Dialog) self.color_box.setObjectName("color_box") self.horizontalLayout_2.addWidget(self.color_box) self.color_pick_button = QtWidgets.QPushButton(Dialog) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.color_pick_button.sizePolicy().hasHeightForWidth()) self.color_pick_button.setSizePolicy(sizePolicy) self.color_pick_button.setObjectName("color_pick_button") self.horizontalLayout_2.addWidget(self.color_pick_button) self.verticalLayout.addLayout(self.horizontalLayout_2) self.gridLayout = QtWidgets.QGridLayout() self.gridLayout.setObjectName("gridLayout") self.label = QtWidgets.QLabel(Dialog) self.label.setObjectName("label") self.gridLayout.addWidget(self.label, 0, 0, 1, 1) self.label_2 = QtWidgets.QLabel(Dialog) self.label_2.setObjectName("label_2") self.gridLayout.addWidget(self.label_2, 0, 1, 1, 1) self.x_box = QtWidgets.QDoubleSpinBox(Dialog) self.x_box.setDecimals(4) self.x_box.setMinimum(-999999.0) self.x_box.setMaximum(999999.0) self.x_box.setObjectName("x_box") self.gridLayout.addWidget(self.x_box, 1, 0, 1, 1) self.y_box = QtWidgets.QDoubleSpinBox(Dialog) self.y_box.setDecimals(4) self.y_box.setMinimum(-999999.0) self.y_box.setMaximum(999999.0) self.y_box.setObjectName("y_box") self.gridLayout.addWidget(self.y_box, 1, 1, 1, 1) self.verticalLayout.addLayout(self.gridLayout) self.type_label = QtWidgets.QLabel(Dialog) self.type_label.setObjectName("type_label") self.verticalLayout.addWidget(self.type_label) self.type_box = QtWidgets.QComboBox(Dialog) self.type_box.setObjectName("type_box") self.type_box.addItem("") self.type_box.addItem("") self.type_box.addItem("") self.verticalLayout.addWidget(self.type_box) self.angle_box_2 = QtWidgets.QLabel(Dialog) self.angle_box_2.setObjectName("angle_box_2") self.verticalLayout.addWidget(self.angle_box_2) self.angle_box = QtWidgets.QDoubleSpinBox(Dialog) self.angle_box.setEnabled(False) self.angle_box.setMaximum(180.0) self.angle_box.setObjectName("angle_box") self.verticalLayout.addWidget(self.angle_box) self.links_label = QtWidgets.QLabel(Dialog) self.links_label.setObjectName("links_label") self.verticalLayout.addWidget(self.links_label) self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") self.noSelected = QtWidgets.QListWidget(Dialog) self.noSelected.setDragEnabled(True) self.noSelected.setDragDropMode(QtWidgets.QAbstractItemView.DragDrop) self.noSelected.setDefaultDropAction(QtCore.Qt.MoveAction) self.noSelected.setObjectName("noSelected") self.horizontalLayout.addWidget(self.noSelected) self.label_4 = QtWidgets.QLabel(Dialog) self.label_4.setObjectName("label_4") self.horizontalLayout.addWidget(self.label_4) self.selected = QtWidgets.QListWidget(Dialog) self.selected.setDragEnabled(True) self.selected.setDragDropMode(QtWidgets.QAbstractItemView.DragDrop) self.selected.setDefaultDropAction(QtCore.Qt.MoveAction) self.selected.setObjectName("selected") self.horizontalLayout.addWidget(self.selected) self.verticalLayout.addLayout(self.horizontalLayout) self.horizontalLayout_3.addLayout(self.verticalLayout) self.verticalLayout_2 = QtWidgets.QVBoxLayout() self.verticalLayout_2.setObjectName("verticalLayout_2") self.button_box = QtWidgets.QDialogButtonBox(Dialog) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.button_box.sizePolicy().hasHeightForWidth()) self.button_box.setSizePolicy(sizePolicy) self.button_box.setOrientation(QtCore.Qt.Vertical) self.button_box.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Ok) self.button_box.setObjectName("button_box") self.verticalLayout_2.addWidget(self.button_box) spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.verticalLayout_2.addItem(spacerItem) self.horizontalLayout_3.addLayout(self.verticalLayout_2) self.retranslateUi(Dialog) self.button_box.accepted.connect(Dialog.accept) self.button_box.rejected.connect(Dialog.reject) QtCore.QMetaObject.connectSlotsByName(Dialog)
def setupUi(self, Dialog): Dialog.setObjectName("Dialog") Dialog.resize(567, 163) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(":/icons/dimensional_synthesis.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) Dialog.setWindowIcon(icon) Dialog.setModal(True) self.verticalLayout = QtWidgets.QVBoxLayout(Dialog) self.verticalLayout.setObjectName("verticalLayout") self.horizontalLayout_2 = QtWidgets.QHBoxLayout() self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.label_6 = QtWidgets.QLabel(Dialog) self.label_6.setObjectName("label_6") self.horizontalLayout_2.addWidget(self.label_6) self.time_label = QtWidgets.QLabel(Dialog) self.time_label.setObjectName("time_label") self.horizontalLayout_2.addWidget(self.time_label) spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_2.addItem(spacerItem) self.label_4 = QtWidgets.QLabel(Dialog) self.label_4.setObjectName("label_4") self.horizontalLayout_2.addWidget(self.label_4) self.batch_label = QtWidgets.QLabel(Dialog) self.batch_label.setObjectName("batch_label") self.horizontalLayout_2.addWidget(self.batch_label) self.label_7 = QtWidgets.QLabel(Dialog) self.label_7.setObjectName("label_7") self.horizontalLayout_2.addWidget(self.label_7) self.loopTime = QtWidgets.QSpinBox(Dialog) self.loopTime.setMinimum(1) self.loopTime.setMaximum(10) self.loopTime.setObjectName("loopTime") self.horizontalLayout_2.addWidget(self.loopTime) self.label_5 = QtWidgets.QLabel(Dialog) self.label_5.setObjectName("label_5") self.horizontalLayout_2.addWidget(self.label_5) self.verticalLayout.addLayout(self.horizontalLayout_2) spacerItem1 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.verticalLayout.addItem(spacerItem1) self.fast_kernel_label = QtWidgets.QLabel(Dialog) self.fast_kernel_label.setWordWrap(True) self.fast_kernel_label.setObjectName("fast_kernel_label") self.verticalLayout.addWidget(self.fast_kernel_label) self.full_kernel_label = QtWidgets.QLabel(Dialog) self.full_kernel_label.setWordWrap(True) self.full_kernel_label.setObjectName("full_kernel_label") self.verticalLayout.addWidget(self.full_kernel_label) self.interrupt_label = QtWidgets.QLabel(Dialog) self.interrupt_label.setWordWrap(True) self.interrupt_label.setObjectName("interrupt_label") self.verticalLayout.addWidget(self.interrupt_label) self.progress_bar = QtWidgets.QProgressBar(Dialog) self.progress_bar.setObjectName("progress_bar") self.verticalLayout.addWidget(self.progress_bar) self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setSpacing(6) self.horizontalLayout.setObjectName("horizontalLayout") self.label_3 = QtWidgets.QLabel(Dialog) self.label_3.setObjectName("label_3") self.horizontalLayout.addWidget(self.label_3) self.fitness_label = QtWidgets.QLabel(Dialog) self.fitness_label.setObjectName("fitness_label") self.horizontalLayout.addWidget(self.fitness_label) spacerItem2 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem2) self.start_button = QtWidgets.QPushButton(Dialog) self.start_button.setObjectName("start_button") self.horizontalLayout.addWidget(self.start_button) self.interrupt_button = QtWidgets.QPushButton(Dialog) self.interrupt_button.setEnabled(False) self.interrupt_button.setObjectName("interrupt_button") self.horizontalLayout.addWidget(self.interrupt_button) self.button_box = QtWidgets.QDialogButtonBox(Dialog) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.button_box.sizePolicy().hasHeightForWidth()) self.button_box.setSizePolicy(sizePolicy) self.button_box.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel) self.button_box.setObjectName("button_box") self.horizontalLayout.addWidget(self.button_box) self.verticalLayout.addLayout(self.horizontalLayout) self.retranslateUi(Dialog) self.button_box.rejected.connect(Dialog.reject) QtCore.QMetaObject.connectSlotsByName(Dialog)
def setupUi(self, Dialog): Dialog.setObjectName("Dialog") Dialog.resize(346, 309) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(":/icons/configure.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) Dialog.setWindowIcon(icon) Dialog.setSizeGripEnabled(True) Dialog.setModal(True) self.verticalLayout_4 = QtWidgets.QVBoxLayout(Dialog) self.verticalLayout_4.setObjectName("verticalLayout_4") self.main_label = QtWidgets.QLabel(Dialog) self.main_label.setObjectName("main_label") self.verticalLayout_4.addWidget(self.main_label) self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") self.verticalLayout_3 = QtWidgets.QVBoxLayout() self.verticalLayout_3.setObjectName("verticalLayout_3") self.other_label = QtWidgets.QLabel(Dialog) self.other_label.setObjectName("other_label") self.verticalLayout_3.addWidget(self.other_label) self.other_list = QtWidgets.QListWidget(Dialog) self.other_list.setObjectName("other_list") self.verticalLayout_3.addWidget(self.other_list) self.horizontalLayout.addLayout(self.verticalLayout_3) self.verticalLayout = QtWidgets.QVBoxLayout() self.verticalLayout.setObjectName("verticalLayout") self.targets_add = QtWidgets.QPushButton(Dialog) self.targets_add.setMaximumSize(QtCore.QSize(30, 16777215)) self.targets_add.setObjectName("targets_add") self.verticalLayout.addWidget(self.targets_add) self.other_add = QtWidgets.QPushButton(Dialog) self.other_add.setMaximumSize(QtCore.QSize(30, 16777215)) self.other_add.setObjectName("other_add") self.verticalLayout.addWidget(self.other_add) self.horizontalLayout.addLayout(self.verticalLayout) self.verticalLayout_2 = QtWidgets.QVBoxLayout() self.verticalLayout_2.setObjectName("verticalLayout_2") self.targets_label = QtWidgets.QLabel(Dialog) self.targets_label.setObjectName("targets_label") self.verticalLayout_2.addWidget(self.targets_label) self.targets_list = QtWidgets.QListWidget(Dialog) self.targets_list.setObjectName("targets_list") self.verticalLayout_2.addWidget(self.targets_list) self.horizontalLayout.addLayout(self.verticalLayout_2) self.verticalLayout_4.addLayout(self.horizontalLayout) self.horizontalLayout_2 = QtWidgets.QHBoxLayout() self.horizontalLayout_2.setObjectName("horizontalLayout_2") spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_2.addItem(spacerItem) self.button_box = QtWidgets.QDialogButtonBox(Dialog) self.button_box.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel | QtWidgets.QDialogButtonBox.Save) self.button_box.setObjectName("button_box") self.horizontalLayout_2.addWidget(self.button_box) self.verticalLayout_4.addLayout(self.horizontalLayout_2) self.retranslateUi(Dialog) self.button_box.accepted.connect(Dialog.accept) self.button_box.rejected.connect(Dialog.reject) QtCore.QMetaObject.connectSlotsByName(Dialog)
def setupUi(self, Dialog): Dialog.setObjectName("Dialog") Dialog.setEnabled(True) Dialog.resize(586, 494) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(":/icons/main.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) Dialog.setWindowIcon(icon) Dialog.setSizeGripEnabled(False) Dialog.setModal(True) self.verticalLayout_7 = QtWidgets.QVBoxLayout(Dialog) self.verticalLayout_7.setContentsMargins(-1, 6, 6, 6) self.verticalLayout_7.setObjectName("verticalLayout_7") self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") self.verticalLayout_2 = QtWidgets.QVBoxLayout() self.verticalLayout_2.setObjectName("verticalLayout_2") self.iconLabel = QtWidgets.QLabel(Dialog) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.iconLabel.sizePolicy().hasHeightForWidth()) self.iconLabel.setSizePolicy(sizePolicy) self.iconLabel.setAlignment(QtCore.Qt.AlignLeading | QtCore.Qt.AlignLeft | QtCore.Qt.AlignTop) self.iconLabel.setObjectName("iconLabel") self.verticalLayout_2.addWidget(self.iconLabel) spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.verticalLayout_2.addItem(spacerItem) self.horizontalLayout.addLayout(self.verticalLayout_2) self.verticalLayout_3 = QtWidgets.QVBoxLayout() self.verticalLayout_3.setObjectName("verticalLayout_3") self.title_label = QtWidgets.QLabel(Dialog) self.title_label.setText("") self.title_label.setObjectName("title_label") self.verticalLayout_3.addWidget(self.title_label) self.tab_widget = QtWidgets.QTabWidget(Dialog) self.tab_widget.setObjectName("tab_widget") self.AboutTab = QtWidgets.QWidget() self.AboutTab.setObjectName("AboutTab") self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.AboutTab) self.verticalLayout_4.setContentsMargins(6, 6, 6, 6) self.verticalLayout_4.setObjectName("verticalLayout_4") self.description_text = QtWidgets.QTextBrowser(self.AboutTab) self.description_text.setObjectName("description_text") self.verticalLayout_4.addWidget(self.description_text) self.tab_widget.addTab(self.AboutTab, "") self.LicenseTab = QtWidgets.QWidget() self.LicenseTab.setObjectName("LicenseTab") self.verticalLayout = QtWidgets.QVBoxLayout(self.LicenseTab) self.verticalLayout.setObjectName("verticalLayout") self.license_text = QtWidgets.QTextBrowser(self.LicenseTab) self.license_text.setObjectName("license_text") self.verticalLayout.addWidget(self.license_text) self.tab_widget.addTab(self.LicenseTab, "") self.VersionsTab = QtWidgets.QWidget() self.VersionsTab.setObjectName("VersionsTab") self.verticalLayout_6 = QtWidgets.QVBoxLayout(self.VersionsTab) self.verticalLayout_6.setContentsMargins(6, 6, 6, 6) self.verticalLayout_6.setObjectName("verticalLayout_6") self.ver_text = QtWidgets.QTextBrowser(self.VersionsTab) self.ver_text.setObjectName("ver_text") self.verticalLayout_6.addWidget(self.ver_text) self.tab_widget.addTab(self.VersionsTab, "") self.ArgumentsTab = QtWidgets.QWidget() self.ArgumentsTab.setObjectName("ArgumentsTab") self.verticalLayout_9 = QtWidgets.QVBoxLayout(self.ArgumentsTab) self.verticalLayout_9.setContentsMargins(6, 6, 6, 6) self.verticalLayout_9.setObjectName("verticalLayout_9") self.args_text = QtWidgets.QTextBrowser(self.ArgumentsTab) self.args_text.setObjectName("args_text") self.verticalLayout_9.addWidget(self.args_text) self.tab_widget.addTab(self.ArgumentsTab, "") self.verticalLayout_3.addWidget(self.tab_widget) self.horizontalLayout.addLayout(self.verticalLayout_3) self.verticalLayout_7.addLayout(self.horizontalLayout) self.horizontalLayout_2 = QtWidgets.QHBoxLayout() self.horizontalLayout_2.setObjectName("horizontalLayout_2") spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_2.addItem(spacerItem1) self.button_box = QtWidgets.QDialogButtonBox(Dialog) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.button_box.sizePolicy().hasHeightForWidth()) self.button_box.setSizePolicy(sizePolicy) self.button_box.setOrientation(QtCore.Qt.Horizontal) self.button_box.setStandardButtons(QtWidgets.QDialogButtonBox.Ok) self.button_box.setObjectName("button_box") self.horizontalLayout_2.addWidget(self.button_box) self.verticalLayout_7.addLayout(self.horizontalLayout_2) self.retranslateUi(Dialog) self.tab_widget.setCurrentIndex(0) self.button_box.accepted.connect(Dialog.accept) self.button_box.rejected.connect(Dialog.reject) QtCore.QMetaObject.connectSlotsByName(Dialog)
def setupUi(self, Dialog): Dialog.setObjectName("Dialog") Dialog.resize(570, 375) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(":/icons/DimensionalSynthesis.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) Dialog.setWindowIcon(icon) Dialog.setSizeGripEnabled(True) Dialog.setModal(True) self.verticalLayout_5 = QtWidgets.QVBoxLayout(Dialog) self.verticalLayout_5.setObjectName("verticalLayout_5") self.splitter = QtWidgets.QSplitter(Dialog) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.splitter.sizePolicy().hasHeightForWidth()) self.splitter.setSizePolicy(sizePolicy) self.splitter.setOrientation(QtCore.Qt.Horizontal) self.splitter.setObjectName("splitter") self.layoutWidget = QtWidgets.QWidget(self.splitter) self.layoutWidget.setObjectName("layoutWidget") self.verticalLayout = QtWidgets.QVBoxLayout(self.layoutWidget) self.verticalLayout.setContentsMargins(0, 0, 0, 0) self.verticalLayout.setObjectName("verticalLayout") self.path_list = QtWidgets.QListWidget(self.layoutWidget) self.path_list.setObjectName("path_list") self.verticalLayout.addWidget(self.path_list) self.tabWidget = QtWidgets.QTabWidget(self.splitter) self.tabWidget.setObjectName("tabWidget") self.moving = QtWidgets.QWidget() self.moving.setObjectName("moving") self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.moving) self.verticalLayout_2.setContentsMargins(6, 6, 6, 6) self.verticalLayout_2.setObjectName("verticalLayout_2") self.gridLayout = QtWidgets.QGridLayout() self.gridLayout.setObjectName("gridLayout") self.label = QtWidgets.QLabel(self.moving) self.label.setObjectName("label") self.gridLayout.addWidget(self.label, 0, 0, 1, 1) spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.gridLayout.addItem(spacerItem, 0, 2, 1, 1) self.label_2 = QtWidgets.QLabel(self.moving) self.label_2.setObjectName("label_2") self.gridLayout.addWidget(self.label_2, 1, 0, 1, 1) self.moving_y_coordinate = QtWidgets.QDoubleSpinBox(self.moving) self.moving_y_coordinate.setMinimum(-1000000.0) self.moving_y_coordinate.setMaximum(1000000.0) self.moving_y_coordinate.setObjectName("moving_y_coordinate") self.gridLayout.addWidget(self.moving_y_coordinate, 1, 1, 1, 1) spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.gridLayout.addItem(spacerItem1, 1, 2, 1, 1) self.moving_x_coordinate = QtWidgets.QDoubleSpinBox(self.moving) self.moving_x_coordinate.setMinimum(-1000000.0) self.moving_x_coordinate.setMaximum(1000000.0) self.moving_x_coordinate.setObjectName("moving_x_coordinate") self.gridLayout.addWidget(self.moving_x_coordinate, 0, 1, 1, 1) self.verticalLayout_2.addLayout(self.gridLayout) spacerItem2 = QtWidgets.QSpacerItem(20, 99, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.verticalLayout_2.addItem(spacerItem2) self.horizontalLayout_3 = QtWidgets.QHBoxLayout() self.horizontalLayout_3.setObjectName("horizontalLayout_3") spacerItem3 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_3.addItem(spacerItem3) self.moving_button = QtWidgets.QPushButton(self.moving) self.moving_button.setDefault(True) self.moving_button.setObjectName("moving_button") self.horizontalLayout_3.addWidget(self.moving_button) spacerItem4 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_3.addItem(spacerItem4) self.verticalLayout_2.addLayout(self.horizontalLayout_3) self.tabWidget.addTab(self.moving, "") self.scaling = QtWidgets.QWidget() self.scaling.setObjectName("scaling") self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.scaling) self.verticalLayout_3.setContentsMargins(6, 6, 6, 6) self.verticalLayout_3.setObjectName("verticalLayout_3") self.gridLayout_2 = QtWidgets.QGridLayout() self.gridLayout_2.setObjectName("gridLayout_2") spacerItem5 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.gridLayout_2.addItem(spacerItem5, 0, 2, 1, 1) self.scaling_h = QtWidgets.QDoubleSpinBox(self.scaling) self.scaling_h.setMinimum(1.0) self.scaling_h.setMaximum(10000.0) self.scaling_h.setObjectName("scaling_h") self.gridLayout_2.addWidget(self.scaling_h, 0, 1, 1, 1) self.label_3 = QtWidgets.QLabel(self.scaling) self.label_3.setObjectName("label_3") self.gridLayout_2.addWidget(self.label_3, 0, 0, 1, 1) self.label_4 = QtWidgets.QLabel(self.scaling) self.label_4.setObjectName("label_4") self.gridLayout_2.addWidget(self.label_4, 1, 0, 1, 1) spacerItem6 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.gridLayout_2.addItem(spacerItem6, 1, 2, 1, 1) self.scaling_v = QtWidgets.QDoubleSpinBox(self.scaling) self.scaling_v.setMinimum(1.0) self.scaling_v.setMaximum(10000.0) self.scaling_v.setObjectName("scaling_v") self.gridLayout_2.addWidget(self.scaling_v, 1, 1, 1, 1) self.verticalLayout_3.addLayout(self.gridLayout_2) self.line = QtWidgets.QFrame(self.scaling) self.line.setFrameShape(QtWidgets.QFrame.HLine) self.line.setFrameShadow(QtWidgets.QFrame.Sunken) self.line.setObjectName("line") self.verticalLayout_3.addWidget(self.line) self.horizontalLayout_2 = QtWidgets.QHBoxLayout() self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.label_5 = QtWidgets.QLabel(self.scaling) self.label_5.setObjectName("label_5") self.horizontalLayout_2.addWidget(self.label_5) self.scaling_rx = QtWidgets.QDoubleSpinBox(self.scaling) self.scaling_rx.setMinimum(-1000000.0) self.scaling_rx.setMaximum(1000000.0) self.scaling_rx.setObjectName("scaling_rx") self.horizontalLayout_2.addWidget(self.scaling_rx) self.scaling_ry = QtWidgets.QDoubleSpinBox(self.scaling) self.scaling_ry.setMinimum(-1000000.0) self.scaling_ry.setMaximum(1000000.0) self.scaling_ry.setObjectName("scaling_ry") self.horizontalLayout_2.addWidget(self.scaling_ry) spacerItem7 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_2.addItem(spacerItem7) self.verticalLayout_3.addLayout(self.horizontalLayout_2) spacerItem8 = QtWidgets.QSpacerItem(20, 52, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.verticalLayout_3.addItem(spacerItem8) self.horizontalLayout_4 = QtWidgets.QHBoxLayout() self.horizontalLayout_4.setObjectName("horizontalLayout_4") spacerItem9 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_4.addItem(spacerItem9) self.scaling_button = QtWidgets.QPushButton(self.scaling) self.scaling_button.setDefault(True) self.scaling_button.setObjectName("scaling_button") self.horizontalLayout_4.addWidget(self.scaling_button) spacerItem10 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_4.addItem(spacerItem10) self.verticalLayout_3.addLayout(self.horizontalLayout_4) self.tabWidget.addTab(self.scaling, "") self.curve_fitting = QtWidgets.QWidget() self.curve_fitting.setObjectName("curve_fitting") self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.curve_fitting) self.verticalLayout_4.setContentsMargins(6, 6, 6, 6) self.verticalLayout_4.setObjectName("verticalLayout_4") self.label_8 = QtWidgets.QLabel(self.curve_fitting) self.label_8.setWordWrap(True) self.label_8.setObjectName("label_8") self.verticalLayout_4.addWidget(self.label_8) self.horizontalLayout_7 = QtWidgets.QHBoxLayout() self.horizontalLayout_7.setObjectName("horizontalLayout_7") self.label_7 = QtWidgets.QLabel(self.curve_fitting) self.label_7.setObjectName("label_7") self.horizontalLayout_7.addWidget(self.label_7) self.points_num = QtWidgets.QLabel(self.curve_fitting) self.points_num.setObjectName("points_num") self.horizontalLayout_7.addWidget(self.points_num) spacerItem11 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_7.addItem(spacerItem11) self.verticalLayout_4.addLayout(self.horizontalLayout_7) self.horizontalLayout_6 = QtWidgets.QHBoxLayout() self.horizontalLayout_6.setObjectName("horizontalLayout_6") self.label_6 = QtWidgets.QLabel(self.curve_fitting) self.label_6.setObjectName("label_6") self.horizontalLayout_6.addWidget(self.label_6) self.match_num = QtWidgets.QSpinBox(self.curve_fitting) self.match_num.setObjectName("match_num") self.horizontalLayout_6.addWidget(self.match_num) spacerItem12 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_6.addItem(spacerItem12) self.verticalLayout_4.addLayout(self.horizontalLayout_6) spacerItem13 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.verticalLayout_4.addItem(spacerItem13) self.horizontalLayout_8 = QtWidgets.QHBoxLayout() self.horizontalLayout_8.setObjectName("horizontalLayout_8") spacerItem14 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_8.addItem(spacerItem14) self.match_button = QtWidgets.QPushButton(self.curve_fitting) self.match_button.setDefault(True) self.match_button.setObjectName("match_button") self.horizontalLayout_8.addWidget(self.match_button) spacerItem15 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_8.addItem(spacerItem15) self.verticalLayout_4.addLayout(self.horizontalLayout_8) self.tabWidget.addTab(self.curve_fitting, "") self.verticalLayout_5.addWidget(self.splitter) self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") spacerItem16 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem16) self.button_box = QtWidgets.QDialogButtonBox(Dialog) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.button_box.sizePolicy().hasHeightForWidth()) self.button_box.setSizePolicy(sizePolicy) self.button_box.setStandardButtons(QtWidgets.QDialogButtonBox.Close) self.button_box.setObjectName("button_box") self.horizontalLayout.addWidget(self.button_box) self.verticalLayout_5.addLayout(self.horizontalLayout) self.retranslateUi(Dialog) self.button_box.rejected.connect(Dialog.reject) QtCore.QMetaObject.connectSlotsByName(Dialog)
def setupUi(self, Dialog): Dialog.setObjectName("Dialog") Dialog.resize(651, 532) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(":/icons/collections.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) Dialog.setWindowIcon(icon) Dialog.setSizeGripEnabled(True) Dialog.setModal(True) self.verticalLayout_4 = QtWidgets.QVBoxLayout(Dialog) self.verticalLayout_4.setObjectName("verticalLayout_4") self.main_splitter = QtWidgets.QSplitter(Dialog) self.main_splitter.setOrientation(QtCore.Qt.Horizontal) self.main_splitter.setObjectName("main_splitter") self.preview_box = QtWidgets.QGroupBox(self.main_splitter) self.preview_box.setObjectName("preview_box") self.preview_layout = QtWidgets.QVBoxLayout(self.preview_box) self.preview_layout.setObjectName("preview_layout") self.show_solutions = QtWidgets.QCheckBox(self.preview_box) self.show_solutions.setChecked(True) self.show_solutions.setObjectName("show_solutions") self.preview_layout.addWidget(self.show_solutions) self.sub_splitter = QtWidgets.QSplitter(self.main_splitter) self.sub_splitter.setOrientation(QtCore.Qt.Vertical) self.sub_splitter.setObjectName("sub_splitter") self.layoutWidget = QtWidgets.QWidget(self.sub_splitter) self.layoutWidget.setObjectName("layoutWidget") self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.layoutWidget) self.verticalLayout_2.setContentsMargins(0, 0, 0, 0) self.verticalLayout_2.setObjectName("verticalLayout_2") self.common_label = QtWidgets.QLabel(self.layoutWidget) self.common_label.setObjectName("common_label") self.verticalLayout_2.addWidget(self.common_label) self.common_list = QtWidgets.QListWidget(self.layoutWidget) self.common_list.setObjectName("common_list") self.verticalLayout_2.addWidget(self.common_list) self.common_load = QtWidgets.QPushButton(self.layoutWidget) icon1 = QtGui.QIcon() icon1.addPixmap(QtGui.QPixmap(":/icons/data.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.common_load.setIcon(icon1) self.common_load.setObjectName("common_load") self.verticalLayout_2.addWidget(self.common_load) self.verticalLayoutWidget = QtWidgets.QWidget(self.sub_splitter) self.verticalLayoutWidget.setObjectName("verticalLayoutWidget") self.verticalLayout_3 = QtWidgets.QVBoxLayout( self.verticalLayoutWidget) self.verticalLayout_3.setContentsMargins(0, 0, 0, 0) self.verticalLayout_3.setObjectName("verticalLayout_3") self.line = QtWidgets.QFrame(self.verticalLayoutWidget) self.line.setFrameShape(QtWidgets.QFrame.HLine) self.line.setFrameShadow(QtWidgets.QFrame.Sunken) self.line.setObjectName("line") self.verticalLayout_3.addWidget(self.line) self.Collections_label = QtWidgets.QLabel(self.verticalLayoutWidget) self.Collections_label.setObjectName("Collections_label") self.verticalLayout_3.addWidget(self.Collections_label) self.horizontalLayout_2 = QtWidgets.QHBoxLayout() self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.collections_list = QtWidgets.QListWidget( self.verticalLayoutWidget) self.collections_list.setObjectName("collections_list") self.horizontalLayout_2.addWidget(self.collections_list) self.verticalLayout = QtWidgets.QVBoxLayout() self.verticalLayout.setObjectName("verticalLayout") self.workbook_button = QtWidgets.QPushButton(self.verticalLayoutWidget) icon2 = QtGui.QIcon() icon2.addPixmap(QtGui.QPixmap(":/icons/mechanism.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.workbook_button.setIcon(icon2) self.workbook_button.setObjectName("workbook_button") self.verticalLayout.addWidget(self.workbook_button) self.line_2 = QtWidgets.QFrame(self.verticalLayoutWidget) self.line_2.setFrameShape(QtWidgets.QFrame.HLine) self.line_2.setFrameShadow(QtWidgets.QFrame.Sunken) self.line_2.setObjectName("line_2") self.verticalLayout.addWidget(self.line_2) self.rename_button = QtWidgets.QPushButton(self.verticalLayoutWidget) icon3 = QtGui.QIcon() icon3.addPixmap(QtGui.QPixmap(":/icons/rename.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.rename_button.setIcon(icon3) self.rename_button.setAutoDefault(False) self.rename_button.setObjectName("rename_button") self.verticalLayout.addWidget(self.rename_button) self.copy_button = QtWidgets.QPushButton(self.verticalLayoutWidget) icon4 = QtGui.QIcon() icon4.addPixmap(QtGui.QPixmap(":/icons/copy.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.copy_button.setIcon(icon4) self.copy_button.setObjectName("copy_button") self.verticalLayout.addWidget(self.copy_button) spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.verticalLayout.addItem(spacerItem) self.delete_button = QtWidgets.QPushButton(self.verticalLayoutWidget) icon5 = QtGui.QIcon() icon5.addPixmap(QtGui.QPixmap(":/icons/delete.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.delete_button.setIcon(icon5) self.delete_button.setAutoDefault(False) self.delete_button.setObjectName("delete_button") self.verticalLayout.addWidget(self.delete_button) self.horizontalLayout_2.addLayout(self.verticalLayout) self.verticalLayout_3.addLayout(self.horizontalLayout_2) self.verticalLayout_4.addWidget(self.main_splitter) self.horizontalLayout_3 = QtWidgets.QHBoxLayout() self.horizontalLayout_3.setObjectName("horizontalLayout_3") spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_3.addItem(spacerItem1) self.button_box = QtWidgets.QDialogButtonBox(Dialog) self.button_box.setStandardButtons(QtWidgets.QDialogButtonBox.Close | QtWidgets.QDialogButtonBox.Open) self.button_box.setObjectName("button_box") self.horizontalLayout_3.addWidget(self.button_box) self.verticalLayout_4.addLayout(self.horizontalLayout_3) self.retranslateUi(Dialog) self.button_box.rejected.connect(Dialog.reject) self.button_box.accepted.connect(Dialog.accept) self.common_load.clicked.connect(Dialog.accept) QtCore.QMetaObject.connectSlotsByName(Dialog)
def setupUi(self, Dialog): Dialog.setObjectName("Dialog") Dialog.resize(388, 627) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(":/icons/configure.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) Dialog.setWindowIcon(icon) Dialog.setSizeGripEnabled(True) Dialog.setModal(True) self.verticalLayout_3 = QtWidgets.QVBoxLayout(Dialog) self.verticalLayout_3.setObjectName("verticalLayout_3") self.new_group = QtWidgets.QGroupBox(Dialog) self.new_group.setObjectName("new_group") self.horizontalLayout_3 = QtWidgets.QHBoxLayout(self.new_group) self.horizontalLayout_3.setObjectName("horizontalLayout_3") self.custom_list = QtWidgets.QListWidget(self.new_group) self.custom_list.setObjectName("custom_list") self.horizontalLayout_3.addWidget(self.custom_list) self.verticalLayout = QtWidgets.QVBoxLayout() self.verticalLayout.setObjectName("verticalLayout") self.link_choose_label = QtWidgets.QLabel(self.new_group) self.link_choose_label.setObjectName("link_choose_label") self.verticalLayout.addWidget(self.link_choose_label) self.link_choose = QtWidgets.QComboBox(self.new_group) self.link_choose.setObjectName("link_choose") self.verticalLayout.addWidget(self.link_choose) spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.verticalLayout.addItem(spacerItem) self.add_button = QtWidgets.QPushButton(self.new_group) self.add_button.setObjectName("add_button") self.verticalLayout.addWidget(self.add_button) self.delete_button = QtWidgets.QPushButton(self.new_group) icon1 = QtGui.QIcon() icon1.addPixmap(QtGui.QPixmap(":/icons/delete.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.delete_button.setIcon(icon1) self.delete_button.setObjectName("delete_button") self.verticalLayout.addWidget(self.delete_button) self.horizontalLayout_3.addLayout(self.verticalLayout) self.verticalLayout_3.addWidget(self.new_group) self.multiple_group = QtWidgets.QGroupBox(Dialog) self.multiple_group.setObjectName("multiple_group") self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.multiple_group) self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.multiple_list = QtWidgets.QListWidget(self.multiple_group) self.multiple_list.setObjectName("multiple_list") self.horizontalLayout_2.addWidget(self.multiple_list) self.verticalLayout_2 = QtWidgets.QVBoxLayout() self.verticalLayout_2.setObjectName("verticalLayout_2") self.quote_choose_label = QtWidgets.QLabel(self.multiple_group) self.quote_choose_label.setObjectName("quote_choose_label") self.verticalLayout_2.addWidget(self.quote_choose_label) self.quote_choose = QtWidgets.QComboBox(self.multiple_group) self.quote_choose.setObjectName("quote_choose") self.verticalLayout_2.addWidget(self.quote_choose) self.quote_link_choose_label = QtWidgets.QLabel(self.multiple_group) self.quote_link_choose_label.setObjectName("quote_link_choose_label") self.verticalLayout_2.addWidget(self.quote_link_choose_label) self.quote_link_choose = QtWidgets.QComboBox(self.multiple_group) self.quote_link_choose.setObjectName("quote_link_choose") self.verticalLayout_2.addWidget(self.quote_link_choose) self.joint_choose_label = QtWidgets.QLabel(self.multiple_group) self.joint_choose_label.setObjectName("joint_choose_label") self.verticalLayout_2.addWidget(self.joint_choose_label) self.joint_choose = QtWidgets.QComboBox(self.multiple_group) self.joint_choose.setObjectName("joint_choose") self.verticalLayout_2.addWidget(self.joint_choose) spacerItem1 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.verticalLayout_2.addItem(spacerItem1) self.add_mj_button = QtWidgets.QPushButton(self.multiple_group) self.add_mj_button.setObjectName("add_mj_button") self.verticalLayout_2.addWidget(self.add_mj_button) self.delete_mj_button = QtWidgets.QPushButton(self.multiple_group) self.delete_mj_button.setIcon(icon1) self.delete_mj_button.setObjectName("delete_mj_button") self.verticalLayout_2.addWidget(self.delete_mj_button) self.horizontalLayout_2.addLayout(self.verticalLayout_2) self.verticalLayout_3.addWidget(self.multiple_group) self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") spacerItem2 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem2) self.button_box = QtWidgets.QDialogButtonBox(Dialog) self.button_box.setStandardButtons(QtWidgets.QDialogButtonBox.Close) self.button_box.setObjectName("button_box") self.horizontalLayout.addWidget(self.button_box) self.verticalLayout_3.addLayout(self.horizontalLayout) self.retranslateUi(Dialog) self.button_box.rejected.connect(Dialog.reject) QtCore.QMetaObject.connectSlotsByName(Dialog)
def setupUi(self, Dialog): Dialog.setObjectName("Dialog") Dialog.resize(333, 467) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(":/icons/link.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off) Dialog.setWindowIcon(icon) Dialog.setSizeGripEnabled(True) Dialog.setModal(True) self.horizontalLayout_4 = QtWidgets.QHBoxLayout(Dialog) self.horizontalLayout_4.setObjectName("horizontalLayout_4") self.verticalLayout = QtWidgets.QVBoxLayout() self.verticalLayout.setObjectName("verticalLayout") self.name_label = QtWidgets.QLabel(Dialog) self.name_label.setObjectName("name_label") self.verticalLayout.addWidget(self.name_label) self.name_box = QtWidgets.QComboBox(Dialog) self.name_box.setObjectName("name_box") self.verticalLayout.addWidget(self.name_box) self.name_edit = QtWidgets.QLineEdit(Dialog) self.name_edit.setObjectName("name_edit") self.verticalLayout.addWidget(self.name_edit) self.color_label = QtWidgets.QLabel(Dialog) self.color_label.setAlignment(QtCore.Qt.AlignLeading | QtCore.Qt.AlignLeft | QtCore.Qt.AlignTop) self.color_label.setObjectName("color_label") self.verticalLayout.addWidget(self.color_label) self.horizontalLayout_2 = QtWidgets.QHBoxLayout() self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.color_box = QtWidgets.QComboBox(Dialog) self.color_box.setObjectName("color_box") self.horizontalLayout_2.addWidget(self.color_box) self.color_pick_button = QtWidgets.QPushButton(Dialog) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.color_pick_button.sizePolicy().hasHeightForWidth()) self.color_pick_button.setSizePolicy(sizePolicy) self.color_pick_button.setObjectName("color_pick_button") self.horizontalLayout_2.addWidget(self.color_pick_button) self.verticalLayout.addLayout(self.horizontalLayout_2) self.points_label = QtWidgets.QLabel(Dialog) self.points_label.setObjectName("points_label") self.verticalLayout.addWidget(self.points_label) self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") self.noSelected = QtWidgets.QListWidget(Dialog) self.noSelected.setDragEnabled(True) self.noSelected.setDragDropMode(QtWidgets.QAbstractItemView.DragDrop) self.noSelected.setDefaultDropAction(QtCore.Qt.MoveAction) self.noSelected.setObjectName("noSelected") self.horizontalLayout.addWidget(self.noSelected) self.label = QtWidgets.QLabel(Dialog) self.label.setObjectName("label") self.horizontalLayout.addWidget(self.label) self.selected = QtWidgets.QListWidget(Dialog) self.selected.setDragEnabled(True) self.selected.setDragDropMode(QtWidgets.QAbstractItemView.DragDrop) self.selected.setDefaultDropAction(QtCore.Qt.MoveAction) self.selected.setObjectName("selected") self.horizontalLayout.addWidget(self.selected) self.verticalLayout.addLayout(self.horizontalLayout) self.horizontalLayout_4.addLayout(self.verticalLayout) self.verticalLayout_2 = QtWidgets.QVBoxLayout() self.verticalLayout_2.setObjectName("verticalLayout_2") self.button_box = QtWidgets.QDialogButtonBox(Dialog) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.button_box.sizePolicy().hasHeightForWidth()) self.button_box.setSizePolicy(sizePolicy) self.button_box.setOrientation(QtCore.Qt.Vertical) self.button_box.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel | QtWidgets.QDialogButtonBox.Ok) self.button_box.setObjectName("button_box") self.verticalLayout_2.addWidget(self.button_box) spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.verticalLayout_2.addItem(spacerItem) self.horizontalLayout_4.addLayout(self.verticalLayout_2) self.retranslateUi(Dialog) self.button_box.accepted.connect(Dialog.accept) self.button_box.rejected.connect(Dialog.reject) QtCore.QMetaObject.connectSlotsByName(Dialog)