mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Closes #13258: Use callable() built-in in the standard library.
This commit is contained in:
parent
f99e4b5dbe
commit
5d1155c08e
25 changed files with 48 additions and 51 deletions
|
@ -405,7 +405,7 @@ class TixWidget(tkinter.Widget):
|
|||
elif kw: cnf = kw
|
||||
options = ()
|
||||
for k, v in cnf.items():
|
||||
if hasattr(v, '__call__'):
|
||||
if callable(v):
|
||||
v = self._register(v)
|
||||
options = options + ('-'+k, v)
|
||||
return master.tk.call(('image', 'create', imgtype,) + options)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue