Kaydet (Commit) f050a33c authored tarafından Terry Jan Reedy's avatar Terry Jan Reedy

Merge with 3.5

...@@ -26,8 +26,10 @@ ...@@ -26,8 +26,10 @@
# appreciate the advantages. # appreciate the advantages.
# #
import os
import tkinter
from tkinter import * from tkinter import *
from tkinter import _cnfmerge, _default_root from tkinter import _cnfmerge
import _tkinter # If this fails your Python may not be configured for Tk import _tkinter # If this fails your Python may not be configured for Tk
...@@ -68,7 +70,6 @@ TCL_ALL_EVENTS = 0 ...@@ -68,7 +70,6 @@ TCL_ALL_EVENTS = 0
# BEWARE - this is implemented by copying some code from the Widget class # BEWARE - this is implemented by copying some code from the Widget class
# in Tkinter (to override Widget initialization) and is therefore # in Tkinter (to override Widget initialization) and is therefore
# liable to break. # liable to break.
import tkinter, os
# Could probably add this to Tkinter.Misc # Could probably add this to Tkinter.Misc
class tixCommand: class tixCommand:
...@@ -472,7 +473,7 @@ class DisplayStyle: ...@@ -472,7 +473,7 @@ class DisplayStyle:
(multiple) Display Items""" (multiple) Display Items"""
def __init__(self, itemtype, cnf={}, **kw): 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'] if not master and 'refwindow' in cnf: master=cnf['refwindow']
elif not master and 'refwindow' in kw: master= kw['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") elif not master: raise RuntimeError("Too early to create display style: no root window")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment