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
3234import _tkinter # If this fails your Python may not be configured for Tk
3335
6870# BEWARE - this is implemented by copying some code from the Widget class
6971# in Tkinter (to override Widget initialization) and is therefore
7072# liable to break.
71- import tkinter , os
7273
7374# Could probably add this to Tkinter.Misc
7475class tixCommand :
@@ -472,7 +473,7 @@ class DisplayStyle:
472473 (multiple) Display Items"""
473474
474475 def __init__ (self , itemtype , cnf = {}, ** kw ):
475- master = _default_root # global from Tkinter
476+ master = tkinter . _default_root # global from Tkinter
476477 if not master and 'refwindow' in cnf : master = cnf ['refwindow' ]
477478 elif not master and 'refwindow' in kw : master = kw ['refwindow' ]
478479 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