diff -r b112bfdde5cc -r 5b6ad7a7fd9d graphics/LD_Objects.py --- a/graphics/LD_Objects.py Sat Aug 19 21:06:54 2017 +0300 +++ b/graphics/LD_Objects.py Mon Aug 21 21:55:18 2017 +0300 @@ -28,9 +28,10 @@ from graphics.DebugDataConsumer import DebugDataConsumer from plcopen.structures import * -#------------------------------------------------------------------------------- + +# ------------------------------------------------------------------------------- # Ladder Diagram PowerRail -#------------------------------------------------------------------------------- +# ------------------------------------------------------------------------------- class LD_PowerRail(Graphic_Element): @@ -339,9 +340,9 @@ connector.Draw(dc) -#------------------------------------------------------------------------------- +# ------------------------------------------------------------------------------- # Ladder Diagram Contact -#------------------------------------------------------------------------------- +# ------------------------------------------------------------------------------- class LD_Contact(Graphic_Element, DebugDataConsumer): @@ -514,7 +515,7 @@ # if a name is given if name is not None: # Test input and output connector - #if name == self.Input.GetName(): + # if name == self.Input.GetName(): # return self.Input if name == self.Output.GetName(): return self.Output @@ -685,9 +686,10 @@ elif typetext != "": DrawHighlightedText(dc, typetext, highlights, type_pos[0], type_pos[1]) -#------------------------------------------------------------------------------- + +# ------------------------------------------------------------------------------- # Ladder Diagram Coil -#------------------------------------------------------------------------------- +# ------------------------------------------------------------------------------- class LD_Coil(Graphic_Element): @@ -833,7 +835,7 @@ # if a name is given if name is not None: # Test input and output connector - #if self.Input and name == self.Input.GetName(): + # if self.Input and name == self.Input.GetName(): # return self.Input if self.Output and name == self.Output.GetName(): return self.Output