mirror of
https://github.com/python/cpython.git
synced 2024-11-25 19:03:49 +08:00
bind_class should return a value
This commit is contained in:
parent
be7c45eec4
commit
c0b93191e6
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user