summaryrefslogtreecommitdiffstats
path: root/Lib/lib-tk
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-12-12 00:09:34 (GMT)
committerGuido van Rossum <guido@python.org>1997-12-12 00:09:34 (GMT)
commit98b9d776661c97ae135bbe308a6e3b6b92449a3f (patch)
tree921b816c6445eb181649899b3549e49bc77be7cd /Lib/lib-tk
parentd56924258ad798622f09e5b835de23fabfbd2e3a (diff)
downloadcpython-98b9d776661c97ae135bbe308a6e3b6b92449a3f.zip
cpython-98b9d776661c97ae135bbe308a6e3b6b92449a3f.tar.gz
cpython-98b9d776661c97ae135bbe308a6e3b6b92449a3f.tar.bz2
Change _nametowidget to nametowidget -- it is a public interface.
Diffstat (limited to 'Lib/lib-tk')
-rw-r--r--Lib/lib-tk/Tkinter.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/lib-tk/Tkinter.py b/Lib/lib-tk/Tkinter.py
index 4c104c8..e59c3d5 100644
--- a/Lib/lib-tk/Tkinter.py
+++ b/Lib/lib-tk/Tkinter.py
@@ -495,7 +495,7 @@ class Misc:
v = self._register(v)
res = res + ('-'+k, v)
return res
- def _nametowidget(self, name):
+ def nametowidget(self, name):
w = self
if name[0] == '.':
w = w._root()
@@ -510,6 +510,7 @@ class Misc:
w = w.children[name]
name = tail
return w
+ _nametowidget = nametowidget
def _register(self, func, subst=None, needcleanup=1):
f = CallWrapper(func, subst, self).__call__
name = `id(f)`