Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f050a33

Browse files
committed
Merge with 3.5
2 parents 4770d6e + 22ba01e commit f050a33

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

Lib/tkinter/tix.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,10 @@
2626
# appreciate the advantages.
2727
#
2828

29+
import os
30+
import tkinter
2931
from tkinter import *
30-
from tkinter import _cnfmerge, _default_root
32+
from tkinter import _cnfmerge
3133

3234
import _tkinter # If this fails your Python may not be configured for Tk
3335

@@ -68,7 +70,6 @@
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
7475
class 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")

0 commit comments

Comments
 (0)