bind_class should return a value

This commit is contained in:
Guido van Rossum 1997-11-22 21:49:56 +00:00
parent be7c45eec4
commit c0b93191e6

View File

@ -456,7 +456,7 @@ class Misc:
def unbind_all(self, sequence):
self.tk.call('bind', 'all' , sequence, '')
def bind_class(self, className, sequence=None, func=None, add=None):
self._bind(('bind', className), sequence, func, add)
return self._bind(('bind', className), sequence, func, add)
def unbind_class(self, className, sequence):
self.tk.call('bind', className , sequence, '')
def mainloop(self, n=0):