Remove a use of callable() from Tkinter to silence warnings under -3.
This commit is contained in:
parent
132fc54069
commit
ff6868cf10
|
@ -1577,7 +1577,7 @@ class Wm:
|
|||
"""Bind function FUNC to command NAME for this widget.
|
||||
Return the function bound to NAME if None is given. NAME could be
|
||||
e.g. "WM_SAVE_YOURSELF" or "WM_DELETE_WINDOW"."""
|
||||
if callable(func):
|
||||
if hasattr(func, '__call__'):
|
||||
command = self._register(func)
|
||||
else:
|
||||
command = func
|
||||
|
|
Loading…
Reference in New Issue