Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
0cdf8327
Commit
0cdf8327
authored
Dec 12, 1997
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change _nametowidget to nametowidget -- it is a public interface.
parent
343d25d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
Lib/lib-tk/Tkinter.py
Lib/lib-tk/Tkinter.py
+2
-1
No files found.
Lib/lib-tk/Tkinter.py
View file @
0cdf8327
...
@@ -495,7 +495,7 @@ class Misc:
...
@@ -495,7 +495,7 @@ class Misc:
v
=
self
.
_register
(
v
)
v
=
self
.
_register
(
v
)
res
=
res
+
(
'-'
+
k
,
v
)
res
=
res
+
(
'-'
+
k
,
v
)
return
res
return
res
def
_
nametowidget
(
self
,
name
):
def
nametowidget
(
self
,
name
):
w
=
self
w
=
self
if
name
[
0
]
==
'.'
:
if
name
[
0
]
==
'.'
:
w
=
w
.
_root
()
w
=
w
.
_root
()
...
@@ -510,6 +510,7 @@ class Misc:
...
@@ -510,6 +510,7 @@ class Misc:
w
=
w
.
children
[
name
]
w
=
w
.
children
[
name
]
name
=
tail
name
=
tail
return
w
return
w
_nametowidget
=
nametowidget
def
_register
(
self
,
func
,
subst
=
None
,
needcleanup
=
1
):
def
_register
(
self
,
func
,
subst
=
None
,
needcleanup
=
1
):
f
=
CallWrapper
(
func
,
subst
,
self
).
__call__
f
=
CallWrapper
(
func
,
subst
,
self
).
__call__
name
=
`id(f)`
name
=
`id(f)`
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment