From: Guido van Rossum Date: Fri, 12 Dec 1997 00:09:34 +0000 (+0000) Subject: Change _nametowidget to nametowidget -- it is a public interface. X-Git-Tag: v1.5b2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=98b9d776661c97ae135bbe308a6e3b6b92449a3f;p=thirdparty%2FPython%2Fcpython.git Change _nametowidget to nametowidget -- it is a public interface. --- diff --git a/Lib/lib-tk/Tkinter.py b/Lib/lib-tk/Tkinter.py index 4c104c8d25a4..e59c3d536f07 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)`