diff -r da5f1fa46f2b -r fb73a6b6622d IDEFrame.py --- a/IDEFrame.py Thu Oct 19 10:57:35 2017 +0300 +++ b/IDEFrame.py Thu Oct 19 11:03:03 2017 +0300 @@ -1268,19 +1268,19 @@ def SetDeleteFunctions(self): self.DeleteFunctions = { ITEM_DATATYPE: GetDeleteElementFunction( - PLCControler.ProjectRemoveDataType, - check_function=self.CheckDataTypeIsUsedBeforeDeletion), + PLCControler.ProjectRemoveDataType, + check_function=self.CheckDataTypeIsUsedBeforeDeletion), ITEM_POU: GetDeleteElementFunction( - PLCControler.ProjectRemovePou, - check_function=self.CheckPouIsUsedBeforeDeletion), + PLCControler.ProjectRemovePou, + check_function=self.CheckPouIsUsedBeforeDeletion), ITEM_TRANSITION: GetDeleteElementFunction( - PLCControler.ProjectRemovePouTransition, ITEM_POU), + PLCControler.ProjectRemovePouTransition, ITEM_POU), ITEM_ACTION: GetDeleteElementFunction( - PLCControler.ProjectRemovePouAction, ITEM_POU), + PLCControler.ProjectRemovePouAction, ITEM_POU), ITEM_CONFIGURATION: GetDeleteElementFunction( - PLCControler.ProjectRemoveConfiguration), + PLCControler.ProjectRemoveConfiguration), ITEM_RESOURCE: GetDeleteElementFunction( - PLCControler.ProjectRemoveConfigurationResource, ITEM_CONFIGURATION) + PLCControler.ProjectRemoveConfigurationResource, ITEM_CONFIGURATION) } def OnDeleteMenu(self, event): @@ -1777,7 +1777,7 @@ if self.LastToolTipItem != item and \ item_infos["type"] in [ITEM_POU, ITEM_TRANSITION, ITEM_ACTION]: bodytype = self.Controler.GetEditedElementBodyType( - item_infos["tagname"]) + item_infos["tagname"]) if item_infos["type"] == ITEM_POU: block_type = { "program": _("Program"),