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 /Demo/tkinter/guido/wish.py | |
| parent | f39ca24ebc2ea15c5d480e92ce2b16c274f799b1 (diff) | |
| download | cpython-10d0f8fc40a9b4b0970ea8b14ddf4b38e67a4dcc.zip cpython-10d0f8fc40a9b4b0970ea8b14ddf4b38e67a4dcc.tar.gz cpython-10d0f8fc40a9b4b0970ea8b14ddf4b38e67a4dcc.tar.bz2 | |
Renamed module tkinter to _tkinter
Diffstat (limited to 'Demo/tkinter/guido/wish.py')
| -rwxr-xr-x | Demo/tkinter/guido/wish.py | 6 |
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 |
