commit | de0559998fef231efc9ecbdef5b3a195d4eaa28d | [log] [tgz] |
---|---|---|
author | Benjamin Peterson <benjamin@python.org> | Fri Oct 09 22:05:45 2009 +0000 |
committer | Benjamin Peterson <benjamin@python.org> | Fri Oct 09 22:05:45 2009 +0000 |
tree | 235b05866ae52f80d81f2953c663d74f1de6dae1 | |
parent | 0c8bee639368324b750176ee171cadd33847f18e [diff] [blame] |
replace callable()
diff --git a/Lib/lib-tk/Tix.py b/Lib/lib-tk/Tix.py index 2616252..f1a1091 100755 --- a/Lib/lib-tk/Tix.py +++ b/Lib/lib-tk/Tix.py
@@ -405,7 +405,7 @@ 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)