editors/Viewer.py
changeset 1762 fcc406143e5b
parent 1759 56e7f4a11046
child 1763 bcc07ff2362c
equal deleted inserted replaced
1761:8c98bad90b8d 1762:fcc406143e5b
   115         return LD_PowerRail(viewer, powerrail_type, id,
   115         return LD_PowerRail(viewer, powerrail_type, id,
   116                                     specific_values.connectors)
   116                                     specific_values.connectors)
   117     return powerRailCreationFunction
   117     return powerRailCreationFunction
   118 
   118 
   119 
   119 
   120 NEGATED_VALUE = lambda x: x if x is not None else False
   120 def NEGATED_VALUE(x):
   121 MODIFIER_VALUE = lambda x: x if x is not None else 'none'
   121     return x if x is not None else False
       
   122 
       
   123 
       
   124 def MODIFIER_VALUE(x):
       
   125     return x if x is not None else 'none'
       
   126 
   122 
   127 
   123 CONTACT_TYPES = {(True, "none"): CONTACT_REVERSE,
   128 CONTACT_TYPES = {(True, "none"): CONTACT_REVERSE,
   124                  (False, "rising"): CONTACT_RISING,
   129                  (False, "rising"): CONTACT_RISING,
   125                  (False, "falling"): CONTACT_FALLING}
   130                  (False, "falling"): CONTACT_FALLING}
   126 
   131