diff options
author | Terry Jan Reedy <tjreedy@udel.edu> | 2016-08-16 05:44:06 (GMT) |
---|---|---|
committer | Terry Jan Reedy <tjreedy@udel.edu> | 2016-08-16 05:44:06 (GMT) |
commit | 1872d9490acdeda1ba25fc33891ba4da6a4c612f (patch) | |
tree | bd46266123092afdd0c091689417d84671375902 | |
parent | 0f3596a1362a0d4bbf5daa85decb9a25b0980f52 (diff) | |
download | cpython-1872d9490acdeda1ba25fc33891ba4da6a4c612f.zip cpython-1872d9490acdeda1ba25fc33891ba4da6a4c612f.tar.gz cpython-1872d9490acdeda1ba25fc33891ba4da6a4c612f.tar.bz2 |
Issue #27611: Don't import volatile attribute.
-rw-r--r-- | Lib/lib-tk/Tix.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Lib/lib-tk/Tix.py b/Lib/lib-tk/Tix.py index 3266e01..50938cc 100644 --- a/Lib/lib-tk/Tix.py +++ b/Lib/lib-tk/Tix.py @@ -26,8 +26,10 @@ # appreciate the advantages. # +import os +import Tkinter from Tkinter import * -from Tkinter import _flatten, _cnfmerge, _default_root +from Tkinter import _flatten, _cnfmerge # WARNING - TkVersion is a limited precision floating point number if TkVersion < 3.999: @@ -72,7 +74,6 @@ TCL_ALL_EVENTS = 0 # BEWARE - this is implemented by copying some code from the Widget class # in Tkinter (to override Widget initialization) and is therefore # liable to break. -import Tkinter, os # Could probably add this to Tkinter.Misc class tixCommand: @@ -476,7 +477,7 @@ class DisplayStyle: (multiple) Display Items""" def __init__(self, itemtype, cnf={}, **kw): - master = _default_root # global from Tkinter + master = Tkinter._default_root 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" |