mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
replace callable()
This commit is contained in:
parent
0c8bee6393
commit
de0559998f
7 changed files with 18 additions and 18 deletions
|
@ -405,7 +405,7 @@ class TixWidget(Tkinter.Widget):
|
|||
elif kw: cnf = kw
|
||||
options = ()
|
||||
for k, v in cnf.items():
|
||||
if callable(v):
|
||||
if hasattr(v, '__call__'):
|
||||
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