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
e6f0199c
Commit
e6f0199c
authored
Sep 25, 2016
by
Serhiy Storchaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #27611: Fixed support of default root window in the tkinter.tix module.
parent
613f8e51
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
4 deletions
+11
-4
Lib/tkinter/tix.py
Lib/tkinter/tix.py
+9
-4
Misc/NEWS
Misc/NEWS
+2
-0
No files found.
Lib/tkinter/tix.py
View file @
e6f0199c
...
...
@@ -477,10 +477,15 @@ class DisplayStyle:
(multiple) Display Items"""
def
__init__
(
self
,
itemtype
,
cnf
=
{},
**
kw
):
master
=
tkinter
.
_default_root
# global from Tkinter
if
not
master
and
'refwindow'
in
cnf
:
master
=
cnf
[
'refwindow'
]
elif
not
master
and
'refwindow'
in
kw
:
master
=
kw
[
'refwindow'
]
elif
not
master
:
raise
RuntimeError
(
"Too early to create display style: no root window"
)
if
'refwindow'
in
kw
:
master
=
kw
[
'refwindow'
]
elif
'refwindow'
in
cnf
:
master
=
cnf
[
'refwindow'
]
else
:
master
=
tkinter
.
_default_root
if
not
master
:
raise
RuntimeError
(
"Too early to create display style: "
"no root window"
)
self
.
tk
=
master
.
tk
self
.
stylename
=
self
.
tk
.
call
(
'tixDisplayStyle'
,
itemtype
,
*
self
.
_options
(
cnf
,
kw
)
)
...
...
Misc/NEWS
View file @
e6f0199c
...
...
@@ -80,6 +80,8 @@ Core and Builtins
Library
-------
- Issue #27611: Fixed support of default root window in the tkinter.tix module.
- Issue #27348: In the traceback module, restore the formatting of exception
messages like "Exception: None". This fixes a regression introduced in
3.5a2.
...
...
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