Home | History | Annotate | Download | only in idlelib

Lines Matching full:sequence

62 # methods: bind and unbind, which get a function and a parsed sequence, as
72 self.sequence = '<'+_types[type][0]+'>'
91 self.sequence, handler)
97 self.widget.unbind(self.widgetinst, self.sequence, self.handlerid)
102 self.widget.unbind(self.widgetinst, self.sequence, self.handlerid)
254 def _parse_sequence(sequence):
255 """Get a string which should describe an event sequence. If it is
260 if not sequence or sequence[0] != '<' or sequence[-1] != '>':
262 words = string.split(sequence[1:-1], '-')
324 def bind(self, sequence=None, func=None, add=None):
325 #print "bind(%s, %s, %s) called." % (sequence, func, add)
326 if type(sequence) is str and len(sequence) > 2 and \
327 sequence[:2] == "<<" and sequence[-2:] == ">>":
328 if sequence in self.__eventinfo:
329 ei = self.__eventinfo[sequence]
338 self.__eventinfo[sequence] = [func, []]
339 return widget.bind(self, sequence, func, add)
341 def unbind(self, sequence, funcid=None):
342 if type(sequence) is str and len(sequence) > 2 and \
343 sequence[:2] == "<<" and sequence[-2:] == ">>" and \
344 sequence in self.__eventinfo:
345 func, triplets = self.__eventinfo[sequence]
349 self.__eventinfo[sequence][0] = None
350 return widget.unbind(self, sequence, funcid)