items=["Euclidean", "Manhattan", "Maximal", "Mahalanobis"])
self.metrics = ["euclidean", "manhattan", "chebyshev", "mahalanobis"]
self.weights = ["uniform", "distance"]
gui.comboBox(self.controlArea, self, "weight_type",
box="Neigbours weight",
items=[i.capitalize() for i in self.weights])
After Change
alignment=Qt.AlignRight)
gui.comboBox(box, self, "metric_index", label="Metric",
orientation="horizontal",
items=[i.capitalize()for i in self.metrics])
gui.comboBox(box, self, "weight_type", label="Weight",
orientation="horizontal",
items=[i.capitalize() for i in self.weights])