diff options
author | Benjamin Peterson <benjamin@python.org> | 2009-10-09 22:05:45 +0000 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2009-10-09 22:05:45 +0000 |
commit | de0559998fef231efc9ecbdef5b3a195d4eaa28d (patch) | |
tree | 235b05866ae52f80d81f2953c663d74f1de6dae1 /Lib/lib-tk/Tix.py | |
parent | 0c8bee639368324b750176ee171cadd33847f18e (diff) | |
download | cpython-git-de0559998fef231efc9ecbdef5b3a195d4eaa28d.tar.gz |
replace callable()
Diffstat (limited to 'Lib/lib-tk/Tix.py')
-rwxr-xr-x | Lib/lib-tk/Tix.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/lib-tk/Tix.py b/Lib/lib-tk/Tix.py index 26162520e2..f1a109124e 100755 --- a/Lib/lib-tk/Tix.py +++ b/Lib/lib-tk/Tix.py @@ -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) |