replace callable()

This commit is contained in:
Benjamin Peterson 2009-10-09 22:05:45 +00:00
parent 0c8bee6393
commit de0559998f
7 changed files with 18 additions and 18 deletions

View file

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