Exemplo n.º 1
0
    def __init__(self, inst, props, *args, **kwargs):
        super(SpringfieldCounterTimerController,
              self).__init__(inst, props, *args, **kwargs)

        # initialize hardware communication
        self.springfield = springfieldlib.SpringfieldCounterHW()

        # do some initialization
        self._counters = {}
Exemplo n.º 2
0
 def __init__(self, inst, props, *args, **kwargs):
     """Constructor"""
     super(SpringfieldBaseCounterTimerController,
           self).__init__(inst, props, *args, **kwargs)
     self.springfield = springfieldlib.SpringfieldCounterHW()