self._code_style

This commit is contained in:
fieldOfView 2016-09-15 10:21:32 +02:00
parent 20f76b62fe
commit 34aeb50b6a

View file

@ -84,12 +84,12 @@ class DiscoverUM3Action(MachineAction):
@pyqtSlot() @pyqtSlot()
def loadConfigurationFromPrinter(self): def loadConfigurationFromPrinter(self):
machine_manager = Application.getInstance().getMachineManager() machine_manager = Application.getInstance().getMachineManager()
hotendIds = machine_manager.printerOutputDevices[0].hotendIds hotend_ids = machine_manager.printerOutputDevices[0].hotendIds
for index in range(len(hotendIds)): for index in range(len(hotend_ids)):
machine_manager.printerOutputDevices[0].hotendIdChanged.emit(index, hotendIds[index]) machine_manager.printerOutputDevices[0].hotendIdChanged.emit(index, hotend_ids[index])
materialIds = machine_manager.printerOutputDevices[0].materialIds material_ids = machine_manager.printerOutputDevices[0].materialIds
for index in range(len(materialIds)): for index in range(len(material_ids)):
machine_manager.printerOutputDevices[0].materialIdChanged.emit(index, materialIds[index]) machine_manager.printerOutputDevices[0].materialIdChanged.emit(index, material_ids[index])
def _createAdditionalComponentsView(self): def _createAdditionalComponentsView(self):
Logger.log("d", "Creating additional ui components for UM3.") Logger.log("d", "Creating additional ui components for UM3.")