equal
deleted
inserted
replaced
22 #License along with this library; if not, write to the Free Software |
22 #License along with this library; if not, write to the Free Software |
23 #Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
23 #Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
24 |
24 |
25 import wx |
25 import wx |
26 |
26 |
27 from GraphicCommons import * |
27 from graphics.GraphicCommons import * |
|
28 from graphics.DebugDataConsumer import DebugDataConsumer |
28 from plcopen.structures import * |
29 from plcopen.structures import * |
29 |
30 |
30 def GetWireSize(block): |
31 def GetWireSize(block): |
31 if isinstance(block, SFC_Step): |
32 if isinstance(block, SFC_Step): |
32 return SFC_WIRE_MIN_SIZE + block.GetActionExtraLineNumber() * SFC_ACTION_MIN_SIZE[1] |
33 return SFC_WIRE_MIN_SIZE + block.GetActionExtraLineNumber() * SFC_ACTION_MIN_SIZE[1] |