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
c7af7f36
Commit
c7af7f36
authored
Aug 02, 2008
by
Martin v. Löwis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #799428: Fix Tkinter.Misc._nametowidget to unwrap
Tcl command objects. Backport of r65399.
parent
4f3be8a0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
9 deletions
+11
-9
Lib/lib-tk/Tkinter.py
Lib/lib-tk/Tkinter.py
+9
-9
Misc/NEWS
Misc/NEWS
+2
-0
No files found.
Lib/lib-tk/Tkinter.py
View file @
c7af7f36
...
...
@@ -1072,18 +1072,18 @@ class Misc:
def
nametowidget
(
self
,
name
):
"""Return the Tkinter instance of a widget identified by
its Tcl name NAME."""
name
=
str
(
name
).
split
(
'.'
)
w
=
self
if
name
[
0
]
==
'.'
:
if
not
name
[
0
]:
w
=
w
.
_root
()
name
=
name
[
1
:]
while
name
:
i
=
name
.
find
(
'.'
)
if
i
>=
0
:
name
,
tail
=
name
[:
i
],
name
[
i
+
1
:]
else
:
tail
=
''
w
=
w
.
children
[
name
]
name
=
tail
for
n
in
name
:
if
not
n
:
break
w
=
w
.
children
[
n
]
return
w
_nametowidget
=
nametowidget
def
_register
(
self
,
func
,
subst
=
None
,
needcleanup
=
1
):
...
...
Misc/NEWS
View file @
c7af7f36
...
...
@@ -74,6 +74,8 @@ Core and builtins
Library
-------
- Issue #799428: Fix Tkinter.Misc._nametowidget to unwrap Tcl command objects.
- Issue #3339: dummy_thread.acquire() could return None which is not a valid
return value.
...
...
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