Lines Matching full:triplet
82 def bind(self, triplet, func): argument
98 def unbind(self, triplet, func): argument
213 def bind(self, triplet, func): argument
214 if triplet[2] not in self.bindedfuncs:
215 self.bindedfuncs[triplet[2]] = [[] for s in _states]
218 for detail in (triplet[2], None)
222 seq = "<%s%s-%s>"% (_state_names[s], self.typename, triplet[2])
225 doit = lambda: self.bindedfuncs[triplet[2]][triplet[0]].append(func)
231 def unbind(self, triplet, func): argument
232 doit = lambda: self.bindedfuncs[triplet[2]][triplet[0]].remove(func)
306 def _triplet_to_sequence(triplet): argument
307 if triplet[2]:
308 return '<'+_state_names[triplet[0]]+_types[triplet[1]][0]+'-'+ \
309 triplet[2]+'>'
311 return '<'+_state_names[triplet[0]]+_types[triplet[1]][0]+'>'
342 for triplet in ei[1]:
343 self.__binders[triplet[1]].unbind(triplet, ei[0])
346 for triplet in ei[1]:
347 self.__binders[triplet[1]].bind(triplet, func)
358 for triplet in triplets:
359 self.__binders[triplet[1]].unbind(triplet, func)
371 triplet = _parse_sequence(seq)
372 if triplet is None:
377 self.__binders[triplet[1]].bind(triplet, func)
378 triplets.append(triplet)
385 triplet = _parse_sequence(seq)
386 if triplet is None:
391 self.__binders[triplet[1]].unbind(triplet, func)
392 triplets.remove(triplet)
406 for triplet in triplets:
408 self.__binders[triplet[1]].unbind(triplet, func)