|
|
|
@ -64,31 +64,27 @@ class Ui_MainWindow(object):
|
|
|
|
|
self.label_2 = QtWidgets.QLabel(self.groupBox_3) |
|
|
|
|
self.label_2.setObjectName("label_2") |
|
|
|
|
self.formLayout.setWidget(0, QtWidgets.QFormLayout.LabelRole, self.label_2) |
|
|
|
|
self.number_of_centroids = QtWidgets.QSpinBox(self.groupBox_3) |
|
|
|
|
self.number_of_clusters = QtWidgets.QSpinBox(self.groupBox_3) |
|
|
|
|
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed) |
|
|
|
|
sizePolicy.setHorizontalStretch(0) |
|
|
|
|
sizePolicy.setVerticalStretch(0) |
|
|
|
|
sizePolicy.setHeightForWidth(self.number_of_centroids.sizePolicy().hasHeightForWidth()) |
|
|
|
|
self.number_of_centroids.setSizePolicy(sizePolicy) |
|
|
|
|
self.number_of_centroids.setMinimumSize(QtCore.QSize(50, 26)) |
|
|
|
|
self.number_of_centroids.setMaximumSize(QtCore.QSize(50, 16777215)) |
|
|
|
|
self.number_of_centroids.setObjectName("number_of_centroids") |
|
|
|
|
self.formLayout.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.number_of_centroids) |
|
|
|
|
self.choose_centroids_button = QtWidgets.QPushButton(self.groupBox_3) |
|
|
|
|
self.choose_centroids_button.setEnabled(True) |
|
|
|
|
self.choose_centroids_button.setObjectName("choose_centroids_button") |
|
|
|
|
self.formLayout.setWidget(3, QtWidgets.QFormLayout.LabelRole, self.choose_centroids_button) |
|
|
|
|
sizePolicy.setHeightForWidth(self.number_of_clusters.sizePolicy().hasHeightForWidth()) |
|
|
|
|
self.number_of_clusters.setSizePolicy(sizePolicy) |
|
|
|
|
self.number_of_clusters.setMinimumSize(QtCore.QSize(50, 26)) |
|
|
|
|
self.number_of_clusters.setMaximumSize(QtCore.QSize(50, 16777215)) |
|
|
|
|
self.number_of_clusters.setObjectName("number_of_clusters") |
|
|
|
|
self.formLayout.setWidget(0, QtWidgets.QFormLayout.FieldRole, self.number_of_clusters) |
|
|
|
|
self.unweighted_clustering_button = QtWidgets.QPushButton(self.groupBox_3) |
|
|
|
|
self.unweighted_clustering_button.setEnabled(False) |
|
|
|
|
self.unweighted_clustering_button.setObjectName("unweighted_clustering_button") |
|
|
|
|
self.formLayout.setWidget(4, QtWidgets.QFormLayout.LabelRole, self.unweighted_clustering_button) |
|
|
|
|
self.reset_button = QtWidgets.QPushButton(self.groupBox_3) |
|
|
|
|
self.reset_button.setObjectName("reset_button") |
|
|
|
|
self.formLayout.setWidget(6, QtWidgets.QFormLayout.LabelRole, self.reset_button) |
|
|
|
|
self.formLayout.setWidget(3, QtWidgets.QFormLayout.LabelRole, self.unweighted_clustering_button) |
|
|
|
|
self.weighted_clustering_button = QtWidgets.QPushButton(self.groupBox_3) |
|
|
|
|
self.weighted_clustering_button.setEnabled(False) |
|
|
|
|
self.weighted_clustering_button.setObjectName("weighted_clustering_button") |
|
|
|
|
self.formLayout.setWidget(5, QtWidgets.QFormLayout.LabelRole, self.weighted_clustering_button) |
|
|
|
|
self.formLayout.setWidget(4, QtWidgets.QFormLayout.LabelRole, self.weighted_clustering_button) |
|
|
|
|
self.reset_button = QtWidgets.QPushButton(self.groupBox_3) |
|
|
|
|
self.reset_button.setObjectName("reset_button") |
|
|
|
|
self.formLayout.setWidget(5, QtWidgets.QFormLayout.LabelRole, self.reset_button) |
|
|
|
|
self.verticalLayout.addWidget(self.groupBox_3) |
|
|
|
|
spacerItem = QtWidgets.QSpacerItem(20, 20, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed) |
|
|
|
|
self.verticalLayout.addItem(spacerItem) |
|
|
|
@ -170,11 +166,10 @@ class Ui_MainWindow(object):
|
|
|
|
|
MainWindow.setWindowTitle(_translate("MainWindow", "ClusterView2")) |
|
|
|
|
self.groupBox.setTitle(_translate("MainWindow", "Point List")) |
|
|
|
|
self.groupBox_3.setTitle(_translate("MainWindow", "Solver")) |
|
|
|
|
self.label_2.setText(_translate("MainWindow", "Centroids")) |
|
|
|
|
self.choose_centroids_button.setText(_translate("MainWindow", "Choose Centroids")) |
|
|
|
|
self.label_2.setText(_translate("MainWindow", "Clusters")) |
|
|
|
|
self.unweighted_clustering_button.setText(_translate("MainWindow", "Unweighted Clustering")) |
|
|
|
|
self.reset_button.setText(_translate("MainWindow", "Reset")) |
|
|
|
|
self.weighted_clustering_button.setText(_translate("MainWindow", "Weighted Clustering")) |
|
|
|
|
self.reset_button.setText(_translate("MainWindow", "Reset")) |
|
|
|
|
self.groupBox_2.setTitle(_translate("MainWindow", "Canvas Information")) |
|
|
|
|
self.label.setText(_translate("MainWindow", "Mouse Position:")) |
|
|
|
|
self.menu_file.setTitle(_translate("MainWindow", "File")) |
|
|
|
|