editors/Viewer.py
changeset 1852 70c1cc354a8f
parent 1850 614396cbffbf
child 1853 47a3f39bead0
equal deleted inserted replaced
1851:1b8b5324506c 1852:70c1cc354a8f
  3478             return True
  3478             return True
  3479         elif self.CurrentLanguage == "FBD" and isinstance(block, (FBD_Block, FBD_Variable, FBD_Connector, Comment)):
  3479         elif self.CurrentLanguage == "FBD" and isinstance(block, (FBD_Block, FBD_Variable, FBD_Connector, Comment)):
  3480             return True
  3480             return True
  3481         return False
  3481         return False
  3482 
  3482 
  3483     def GenerateNewName(self, element=None, blocktype=None, exclude={}):
  3483     def GenerateNewName(self, element=None, blocktype=None, exclude=None):
  3484         if element is not None and isinstance(element, SFC_Step):
  3484         if element is not None and isinstance(element, SFC_Step):
  3485             format = "Step%d"
  3485             format = "Step%d"
  3486         else:
  3486         else:
  3487             if element is not None:
  3487             if element is not None:
  3488                 blocktype = element.GetType()
  3488                 blocktype = element.GetType()