Exemplo n.º 1
0
class KeycountAnalyzer(object):
    """docstring for GeneralStatistics"""
    def __init__(self, key=lambda e: 'foo'):
        super(KeycountAnalyzer, self).__init__()
        self.key = key
        self.counter = KeyCounter()

    def process(self, event):
        """docstring for process"""
        self.counter.count(self.key(event))
Exemplo n.º 2
0
class KeycountAnalyzer(object):
	"""docstring for GeneralStatistics"""
	def __init__(self, key=lambda e: 'foo'):
		super(KeycountAnalyzer, self).__init__()
		self.key = key
		self.counter = KeyCounter()
	
	def process(self, event):
		"""docstring for process"""
		self.counter.count(self.key(event))
		
Exemplo n.º 3
0
 def __init__(self, key=lambda e: 'foo'):
     super(KeycountAnalyzer, self).__init__()
     self.key = key
     self.counter = KeyCounter()
Exemplo n.º 4
0
	def __init__(self, key=lambda e: 'foo'):
		super(KeycountAnalyzer, self).__init__()
		self.key = key
		self.counter = KeyCounter()