Renamed module tkinter to _tkinter

This commit is contained in:
Jack Jansen 1995-10-23 14:36:05 +00:00
parent f39ca24ebc
commit 10d0f8fc40
7 changed files with 37 additions and 36 deletions

View file

@ -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