File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2626# appreciate the advantages.
2727#
2828
29+ import os
30+ import tkinter
2931from tkinter import *
30- from tkinter import _cnfmerge , _default_root
32+ from tkinter import _cnfmerge
3133
3234# WARNING - TkVersion is a limited precision floating point number
3335if TkVersion < 3.999 :
7274# BEWARE - this is implemented by copying some code from the Widget class
7375# in Tkinter (to override Widget initialization) and is therefore
7476# liable to break.
75- import tkinter , os
7677
7778# Could probably add this to Tkinter.Misc
7879class tixCommand :
@@ -476,7 +477,7 @@ class DisplayStyle:
476477 (multiple) Display Items"""
477478
478479 def __init__ (self , itemtype , cnf = {}, ** kw ):
479- master = _default_root # global from Tkinter
480+ master = tkinter . _default_root # global from Tkinter
480481 if not master and 'refwindow' in cnf : master = cnf ['refwindow' ]
481482 elif not master and 'refwindow' in kw : master = kw ['refwindow' ]
482483 elif not master : raise RuntimeError ("Too early to create display style: no root window" )
You can’t perform that action at this time.
0 commit comments