def switchUnits(self): currentIndex = self.comboBox_SelectUnits.currentIndex() currentText = self.comboBox_SelectUnits.currentText() if "Meters" == currentText: SwitchUnitsFunctions.switchUnitsToMeters() elif "Centimeters" == currentText: SwitchUnitsFunctions.switchUnitsToCentimeters() elif "Millimeters" == currentText: SwitchUnitsFunctions.switchUnitsToMillimeters()
def doIt(self, args): """Command execution""" SwitchUnitsFunctions.switchUnitsToMeters()