summaryrefslogtreecommitdiffstats
path: root/Demo/tkinter/guido/wish.py
diff options
context:
space:
mode:
Diffstat (limited to 'Demo/tkinter/guido/wish.py')
-rwxr-xr-xDemo/tkinter/guido/wish.py6
1 files changed, 3 insertions, 3 deletions
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