equal
deleted
inserted
replaced
30 |
30 |
31 #------------------------------------------------------------------------------- |
31 #------------------------------------------------------------------------------- |
32 # Ladder Diagram PowerRail |
32 # Ladder Diagram PowerRail |
33 #------------------------------------------------------------------------------- |
33 #------------------------------------------------------------------------------- |
34 |
34 |
35 """ |
|
36 Class that implements the graphic representation of a power rail |
|
37 """ |
|
38 |
35 |
39 class LD_PowerRail(Graphic_Element): |
36 class LD_PowerRail(Graphic_Element): |
|
37 """ |
|
38 Class that implements the graphic representation of a power rail |
|
39 """ |
40 |
40 |
41 # Create a new power rail |
41 # Create a new power rail |
42 def __init__(self, parent, type, id=None, connectors=1): |
42 def __init__(self, parent, type, id=None, connectors=1): |
43 Graphic_Element.__init__(self, parent) |
43 Graphic_Element.__init__(self, parent) |
44 self.Type = None |
44 self.Type = None |
341 |
341 |
342 #------------------------------------------------------------------------------- |
342 #------------------------------------------------------------------------------- |
343 # Ladder Diagram Contact |
343 # Ladder Diagram Contact |
344 #------------------------------------------------------------------------------- |
344 #------------------------------------------------------------------------------- |
345 |
345 |
346 """ |
|
347 Class that implements the graphic representation of a contact |
|
348 """ |
|
349 |
346 |
350 class LD_Contact(Graphic_Element, DebugDataConsumer): |
347 class LD_Contact(Graphic_Element, DebugDataConsumer): |
|
348 """ |
|
349 Class that implements the graphic representation of a contact |
|
350 """ |
351 |
351 |
352 # Create a new contact |
352 # Create a new contact |
353 def __init__(self, parent, type, name, id = None): |
353 def __init__(self, parent, type, name, id = None): |
354 Graphic_Element.__init__(self, parent) |
354 Graphic_Element.__init__(self, parent) |
355 DebugDataConsumer.__init__(self) |
355 DebugDataConsumer.__init__(self) |
687 |
687 |
688 #------------------------------------------------------------------------------- |
688 #------------------------------------------------------------------------------- |
689 # Ladder Diagram Coil |
689 # Ladder Diagram Coil |
690 #------------------------------------------------------------------------------- |
690 #------------------------------------------------------------------------------- |
691 |
691 |
692 """ |
|
693 Class that implements the graphic representation of a coil |
|
694 """ |
|
695 |
692 |
696 class LD_Coil(Graphic_Element): |
693 class LD_Coil(Graphic_Element): |
|
694 """ |
|
695 Class that implements the graphic representation of a coil |
|
696 """ |
697 |
697 |
698 # Create a new coil |
698 # Create a new coil |
699 def __init__(self, parent, type, name, id = None): |
699 def __init__(self, parent, type, name, id = None): |
700 Graphic_Element.__init__(self, parent) |
700 Graphic_Element.__init__(self, parent) |
701 self.Type = type |
701 self.Type = type |