Lines Matching full:triplet
77 def bind(self, triplet, func): argument
93 def unbind(self, triplet, func): argument
203 def bind(self, triplet, func): argument
204 if triplet[2] not in self.bindedfuncs:
205 self.bindedfuncs[triplet[2]] = [[] for s in _states]
208 for detail in (triplet[2], None)
212 seq = "<%s%s-%s>"% (_state_names[s], self.typename, triplet[2])
215 doit = lambda: self.bindedfuncs[triplet[2]][triplet[0]].append(func)
221 def unbind(self, triplet, func): argument
222 doit = lambda: self.bindedfuncs[triplet[2]][triplet[0]].remove(func)
295 def _triplet_to_sequence(triplet): argument
296 if triplet[2]:
297 return '<'+_state_names[triplet[0]]+_types[triplet[1]][0]+'-'+ \
298 triplet[2]+'>'
300 return '<'+_state_names[triplet[0]]+_types[triplet[1]][0]+'>'
330 for triplet in ei[1]:
331 self.__binders[triplet[1]].unbind(triplet, ei[0])
334 for triplet in ei[1]:
335 self.__binders[triplet[1]].bind(triplet, func)
346 for triplet in triplets:
347 self.__binders[triplet[1]].unbind(triplet, func)
358 triplet = _parse_sequence(seq)
359 if triplet is None:
364 self.__binders[triplet[1]].bind(triplet, func)
365 triplets.append(triplet)
372 triplet = _parse_sequence(seq)
373 if triplet is None:
378 self.__binders[triplet[1]].unbind(triplet, func)
379 triplets.remove(triplet)
393 for triplet in triplets:
394 self.__binders[triplet[1]].unbind(triplet, func)