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
7eb4a821
Commit
7eb4a821
authored
Jun 03, 2008
by
Georg Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix tkinter sequence passing. #2906. Backport from r63914.
parent
9aa040d4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
Lib/lib-tk/Tkinter.py
Lib/lib-tk/Tkinter.py
+7
-1
No files found.
Lib/lib-tk/Tkinter.py
View file @
7eb4a821
...
...
@@ -1056,11 +1056,17 @@ class Misc:
if
callable
(
v
):
v
=
self
.
_register
(
v
)
elif
isinstance
(
v
,
(
tuple
,
list
)):
nv
=
[]
for
item
in
v
:
if
not
isinstance
(
item
,
(
basestring
,
int
)):
break
elif
isinstance
(
item
,
int
):
nv
.
append
(
'%d'
%
item
)
else
:
# format it to proper Tcl code if it contains space
nv
.
append
((
'{%s}'
if
' '
in
item
else
'%s'
)
%
item
)
else
:
v
=
' '
.
join
(
map
(
str
,
v
)
)
v
=
' '
.
join
(
nv
)
res
=
res
+
(
'-'
+
k
,
v
)
return
res
def
nametowidget
(
self
,
name
):
...
...
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