runtime/Modbus_config.py
changeset 2660 ddbf029f5682
parent 2658 fdca999c0c1a
child 2661 9d08e3bba629
equal deleted inserted replaced
2658:fdca999c0c1a 2660:ddbf029f5682
    91     def __init__(self, *args, **kwargs):
    91     def __init__(self, *args, **kwargs):
    92         annotate.Choice.__init__(self, choices = self._choices, *args, **kwargs)
    92         annotate.Choice.__init__(self, choices = self._choices, *args, **kwargs)
    93 
    93 
    94 
    94 
    95 class MB_Parity(annotate.Choice):
    95 class MB_Parity(annotate.Choice):
       
    96     # For more info on what this class really does, have a look at the code in
       
    97     # file twisted/nevow/annotate.py
       
    98     # grab this code from $git clone https://github.com/twisted/nevow/
       
    99     # 
    96     # Warning: do _not_ name this variable choice[] without underscore, as that name is
   100     # Warning: do _not_ name this variable choice[] without underscore, as that name is
    97     # already used for another similar variable by the underlying class annotate.Choice
   101     # already used for another similar variable by the underlying class annotate.Choice
    98     _choices = [  0,      1,      2  ]
   102     _choices = [  0,      1,      2  ]
    99     _label   = ["none", "odd", "even"]
   103     _label   = ["none", "odd", "even"]
   100     
   104