diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 1995-10-23 14:36:05 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 1995-10-23 14:36:05 (GMT) |
commit | 10d0f8fc40a9b4b0970ea8b14ddf4b38e67a4dcc (patch) | |
tree | 44ebbc9e93b1a6c745b86149353329d6a87c096c /Lib/lib-tk/Tkinter.py | |
parent | f39ca24ebc2ea15c5d480e92ce2b16c274f799b1 (diff) | |
download | cpython-10d0f8fc40a9b4b0970ea8b14ddf4b38e67a4dcc.zip cpython-10d0f8fc40a9b4b0970ea8b14ddf4b38e67a4dcc.tar.gz cpython-10d0f8fc40a9b4b0970ea8b14ddf4b38e67a4dcc.tar.bz2 |
Renamed module tkinter to _tkinter
Diffstat (limited to 'Lib/lib-tk/Tkinter.py')
-rw-r--r-- | Lib/lib-tk/Tkinter.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/Lib/lib-tk/Tkinter.py b/Lib/lib-tk/Tkinter.py index aace39a..3c2b0ab 100644 --- a/Lib/lib-tk/Tkinter.py +++ b/Lib/lib-tk/Tkinter.py @@ -1,15 +1,15 @@ # Tkinter.py -- Tk/Tcl widget wrappers -import tkinter -from tkinter import TclError +import _tkinter +from _tkinter import TclError from types import * from Tkconstants import * CallableTypes = (FunctionType, MethodType, BuiltinFunctionType, BuiltinMethodType) -TkVersion = eval(tkinter.TK_VERSION) -TclVersion = eval(tkinter.TCL_VERSION) +TkVersion = eval(_tkinter.TK_VERSION) +TclVersion = eval(_tkinter.TCL_VERSION) def _flatten(tuple): @@ -575,18 +575,18 @@ class Tk(Misc, Wm): import sys, os baseName = os.path.basename(sys.argv[0]) if baseName[-3:] == '.py': baseName = baseName[:-3] - self.tk = tkinter.create(screenName, baseName, className) + self.tk = _tkinter.create(screenName, baseName, className) # Version sanity checks tk_version = self.tk.getvar('tk_version') - if tk_version != tkinter.TK_VERSION: + if tk_version != _tkinter.TK_VERSION: raise RuntimeError, \ "tk.h version (%s) doesn't match libtk.a version (%s)" \ - % (tkinter.TK_VERSION, tk_version) + % (_tkinter.TK_VERSION, tk_version) tcl_version = self.tk.getvar('tcl_version') - if tcl_version != tkinter.TCL_VERSION: + if tcl_version != _tkinter.TCL_VERSION: raise RuntimeError, \ "tcl.h version (%s) doesn't match libtcl.a version (%s)" \ - % (tkinter.TCL_VERSION, tcl_version) + % (_tkinter.TCL_VERSION, tcl_version) if TkVersion < 4.0: raise RuntimeError, \ "Tk 4.0 or higher is required; found Tk %s" \ |