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
719de79e
Commit
719de79e
authored
Aug 22, 2013
by
Serhiy Storchaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #16809: Fixed some tkinter incompabilities with Tcl/Tk 8.6.
parent
843185d3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
6 deletions
+8
-6
Lib/tkinter/__init__.py
Lib/tkinter/__init__.py
+4
-4
Lib/tkinter/test/test_ttk/test_widgets.py
Lib/tkinter/test/test_ttk/test_widgets.py
+2
-2
Misc/NEWS
Misc/NEWS
+2
-0
No files found.
Lib/tkinter/__init__.py
View file @
719de79e
...
@@ -1352,7 +1352,7 @@ class Misc:
...
@@ -1352,7 +1352,7 @@ class Misc:
value = words[i+1]
value = words[i+1]
if not value:
if not value:
value = None
value = None
elif '.' in
value
:
elif '.' in
str(value)
:
value = getdouble(value)
value = getdouble(value)
else:
else:
value = getint(value)
value = getint(value)
...
@@ -1921,7 +1921,7 @@ class Pack:
...
@@ -1921,7 +1921,7 @@ class Pack:
for i in range(0, len(words), 2):
for i in range(0, len(words), 2):
key = words[i][1:]
key = words[i][1:]
value = words[i+1]
value = words[i+1]
if
value
[:1] == '.':
if
str(value)
[:1] == '.':
value = self._nametowidget(value)
value = self._nametowidget(value)
dict[key] = value
dict[key] = value
return dict
return dict
...
@@ -1972,7 +1972,7 @@ class Place:
...
@@ -1972,7 +1972,7 @@ class Place:
for i in range(0, len(words), 2):
for i in range(0, len(words), 2):
key = words[i][1:]
key = words[i][1:]
value = words[i+1]
value = words[i+1]
if
value
[:1] == '.':
if
str(value)
[:1] == '.':
value = self._nametowidget(value)
value = self._nametowidget(value)
dict[key] = value
dict[key] = value
return dict
return dict
...
@@ -2021,7 +2021,7 @@ class Grid:
...
@@ -2021,7 +2021,7 @@ class Grid:
for i in range(0, len(words), 2):
for i in range(0, len(words), 2):
key = words[i][1:]
key = words[i][1:]
value = words[i+1]
value = words[i+1]
if
value
[:1] == '.':
if
str(value)
[:1] == '.':
value = self._nametowidget(value)
value = self._nametowidget(value)
dict[key] = value
dict[key] = value
return dict
return dict
...
...
Lib/tkinter/test/test_ttk/test_widgets.py
View file @
719de79e
...
@@ -105,7 +105,7 @@ class CheckbuttonTest(unittest.TestCase):
...
@@ -105,7 +105,7 @@ class CheckbuttonTest(unittest.TestCase):
cbtn
[
'command'
]
=
''
cbtn
[
'command'
]
=
''
res
=
cbtn
.
invoke
()
res
=
cbtn
.
invoke
()
self
.
assertEqual
(
res
,
''
)
self
.
assertEqual
(
str
(
res
)
,
''
)
self
.
assertFalse
(
len
(
success
)
>
1
)
self
.
assertFalse
(
len
(
success
)
>
1
)
self
.
assertEqual
(
cbtn
[
'offvalue'
],
self
.
assertEqual
(
cbtn
[
'offvalue'
],
cbtn
.
tk
.
globalgetvar
(
cbtn
[
'variable'
]))
cbtn
.
tk
.
globalgetvar
(
cbtn
[
'variable'
]))
...
@@ -453,7 +453,7 @@ class RadiobuttonTest(unittest.TestCase):
...
@@ -453,7 +453,7 @@ class RadiobuttonTest(unittest.TestCase):
cbtn2
[
'command'
]
=
''
cbtn2
[
'command'
]
=
''
res
=
cbtn2
.
invoke
()
res
=
cbtn2
.
invoke
()
self
.
assertEqual
(
res
,
''
)
self
.
assertEqual
(
str
(
res
)
,
''
)
self
.
assertFalse
(
len
(
success
)
>
1
)
self
.
assertFalse
(
len
(
success
)
>
1
)
self
.
assertEqual
(
cbtn2
[
'value'
],
myvar
.
get
())
self
.
assertEqual
(
cbtn2
[
'value'
],
myvar
.
get
())
self
.
assertEqual
(
myvar
.
get
(),
self
.
assertEqual
(
myvar
.
get
(),
...
...
Misc/NEWS
View file @
719de79e
...
@@ -66,6 +66,8 @@ Core and Builtins
...
@@ -66,6 +66,8 @@ Core and Builtins
Library
Library
-------
-------
- Issue #16809: Fixed some tkinter incompabilities with Tcl/Tk 8.6.
- Issue #16809: Tkinter'
s
splitlist
()
and
split
()
methods
now
accept
Tcl_Obj
- Issue #16809: Tkinter'
s
splitlist
()
and
split
()
methods
now
accept
Tcl_Obj
argument
.
argument
.
...
...
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