summaryrefslogtreecommitdiffstats
path: root/Demo
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>1995-10-23 14:36:05 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>1995-10-23 14:36:05 (GMT)
commit10d0f8fc40a9b4b0970ea8b14ddf4b38e67a4dcc (patch)
tree44ebbc9e93b1a6c745b86149353329d6a87c096c /Demo
parentf39ca24ebc2ea15c5d480e92ce2b16c274f799b1 (diff)
downloadcpython-10d0f8fc40a9b4b0970ea8b14ddf4b38e67a4dcc.zip
cpython-10d0f8fc40a9b4b0970ea8b14ddf4b38e67a4dcc.tar.gz
cpython-10d0f8fc40a9b4b0970ea8b14ddf4b38e67a4dcc.tar.bz2
Renamed module tkinter to _tkinter
Diffstat (limited to 'Demo')
-rw-r--r--Demo/tkinter/README2
-rwxr-xr-xDemo/tkinter/guido/ManPage.py3
-rwxr-xr-xDemo/tkinter/guido/wish.py6
3 files changed, 6 insertions, 5 deletions
diff --git a/Demo/tkinter/README b/Demo/tkinter/README
index 257c95a..9fa7cb4 100644
--- a/Demo/tkinter/README
+++ b/Demo/tkinter/README
@@ -1,7 +1,7 @@
Several collections of example code for Tkinter.
See the toplevel README for an explanation of the difference between
-Tkinter and tkinter, how to enable the Python Tk interface, and where
+Tkinter and _tkinter, how to enable the Python Tk interface, and where
to get Matt Conway's lifesaver document.
Subdirectories:
diff --git a/Demo/tkinter/guido/ManPage.py b/Demo/tkinter/guido/ManPage.py
index b8b6682..4f0af8c 100755
--- a/Demo/tkinter/guido/ManPage.py
+++ b/Demo/tkinter/guido/ManPage.py
@@ -2,6 +2,7 @@
import regex
from Tkinter import *
+from Tkinter import _tkinter
from ScrolledText import ScrolledText
# XXX These fonts may have to be changed to match your system
@@ -44,7 +45,7 @@ class EditableManPage(ScrolledText):
# Parse a file, in the background
def asyncparsefile(self, fp):
self._startparser(fp)
- self.tk.createfilehandler(fp, tkinter.READABLE,
+ self.tk.createfilehandler(fp, _tkinter.READABLE,
self._filehandler)
parsefile = asyncparsefile # Alias
diff --git a/Demo/tkinter/guido/wish.py b/Demo/tkinter/guido/wish.py
index eec4b69..4f6fdee 100755
--- a/Demo/tkinter/guido/wish.py
+++ b/Demo/tkinter/guido/wish.py
@@ -1,9 +1,9 @@
# This is about all it requires to write a wish shell in Python!
-import tkinter
+import _tkinter
import os
-tk = tkinter.create(os.environ['DISPLAY'], 'wish', 'Tk', 1)
+tk = _tkinter.create(os.environ['DISPLAY'], 'wish', 'Tk', 1)
tk.call('update')
cmd = ''
@@ -20,7 +20,7 @@ while 1:
tk.record(line)
try:
result = tk.call('eval', cmd)
- except tkinter.TclError, msg:
+ except _tkinter.TclError, msg:
print 'TclError:', msg
else:
if result: print result