summaryrefslogtreecommitdiffstats
path: root/Lib/tkinter/tix.py
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2016-08-16 05:44:12 (GMT)
committerTerry Jan Reedy <tjreedy@udel.edu>2016-08-16 05:44:12 (GMT)
commit22ba01ea550a0a6a0bb1e2a6f2758acd46797d2b (patch)
tree74c41b600eb71643cdc5be5099b477b829b18a7c /Lib/tkinter/tix.py
parent76aa1fb3b1b96120ca8fdfd48c53dc7d2a320049 (diff)
downloadcpython-22ba01ea550a0a6a0bb1e2a6f2758acd46797d2b.zip
cpython-22ba01ea550a0a6a0bb1e2a6f2758acd46797d2b.tar.gz
cpython-22ba01ea550a0a6a0bb1e2a6f2758acd46797d2b.tar.bz2
Issue #27611: Don't import volatile attribute.
Diffstat (limited to 'Lib/tkinter/tix.py')
-rw-r--r--Lib/tkinter/tix.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/Lib/tkinter/tix.py b/Lib/tkinter/tix.py
index f667933..89113fd 100644
--- a/Lib/tkinter/tix.py
+++ b/Lib/tkinter/tix.py
@@ -26,8 +26,10 @@
# appreciate the advantages.
#
+import os
+import tkinter
from tkinter import *
-from tkinter import _cnfmerge, _default_root
+from tkinter import _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 # 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")