Remove a use of callable() from Tkinter to silence warnings under -3.

This commit is contained in:
Brett Cannon 2008-08-04 21:24:43 +00:00
parent 132fc54069
commit ff6868cf10
1 changed files with 1 additions and 1 deletions

View File

@ -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