summaryrefslogtreecommitdiff
path: root/Lib/lib-tk/Tix.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2009-10-09 22:05:45 +0000
committerBenjamin Peterson <benjamin@python.org>2009-10-09 22:05:45 +0000
commitde0559998fef231efc9ecbdef5b3a195d4eaa28d (patch)
tree235b05866ae52f80d81f2953c663d74f1de6dae1 /Lib/lib-tk/Tix.py
parent0c8bee639368324b750176ee171cadd33847f18e (diff)
downloadcpython-git-de0559998fef231efc9ecbdef5b3a195d4eaa28d.tar.gz
replace callable()
Diffstat (limited to 'Lib/lib-tk/Tix.py')
-rwxr-xr-xLib/lib-tk/Tix.py2
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)