]> granicus.if.org Git - python/commitdiff
Change _nametowidget to nametowidget -- it is a public interface.
authorGuido van Rossum <guido@python.org>
Fri, 12 Dec 1997 00:09:34 +0000 (00:09 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 12 Dec 1997 00:09:34 +0000 (00:09 +0000)
Lib/lib-tk/Tkinter.py

index 4c104c8d25a4df75a7196781b0a558604720f76c..e59c3d536f07e824426528e4c3a77542dd0a9402 100644 (file)
@@ -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)`