Commit 0cdf8327 authored by Guido van Rossum's avatar Guido van Rossum

Change _nametowidget to nametowidget -- it is a public interface.

parent 343d25d2
......@@ -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)`
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment