diff -r ba5f64fe0e00 -r d73b64672238 editors/Viewer.py --- a/editors/Viewer.py Wed Aug 16 12:30:31 2017 +0300 +++ b/editors/Viewer.py Wed Aug 16 12:48:08 2017 +0300 @@ -64,6 +64,7 @@ else: parent.Append(helpString=help, id=id, kind=kind, item=text) + if wx.Platform == '__WXMSW__': faces = { 'times': 'Times New Roman', @@ -115,6 +116,7 @@ specific_values.connectors) return powerRailCreationFunction + NEGATED_VALUE = lambda x: x if x is not None else False MODIFIER_VALUE = lambda x: x if x is not None else 'none' @@ -129,6 +131,7 @@ CONTACT_NORMAL) return LD_Contact(viewer, contact_type, specific_values.name, id) + COIL_TYPES = {(True, "none", "none"): COIL_REVERSE, (False, "none", "set"): COIL_SET, (False, "none", "reset"): COIL_RESET, @@ -160,6 +163,7 @@ specific_values.priority, id) return transition + divergence_types = [SELECTION_DIVERGENCE, SELECTION_CONVERGENCE, SIMULTANEOUS_DIVERGENCE, SIMULTANEOUS_CONVERGENCE] @@ -178,6 +182,7 @@ def actionBlockCreationFunction(viewer, id, specific_values): return SFC_ActionBlock(viewer, specific_values.actions, id) + ElementCreationFunctions = { "input": GetVariableCreationFunction(INPUT), "output": GetVariableCreationFunction(OUTPUT), @@ -212,6 +217,7 @@ # Graphic elements Viewer base class #------------------------------------------------------------------------------- + # ID Constants for alignment menu items [ID_VIEWERALIGNMENTMENUITEMS0, ID_VIEWERALIGNMENTMENUITEMS1, ID_VIEWERALIGNMENTMENUITEMS2, ID_VIEWERALIGNMENTMENUITEMS4,