diff --git a/Demo/tkinter/guido/wish.py b/Demo/tkinter/guido/wish.py index 16cacde1308..5cbb1b90c22 100755 --- a/Demo/tkinter/guido/wish.py +++ b/Demo/tkinter/guido/wish.py @@ -15,8 +15,8 @@ except EOFError: break cmd = cmd + (line + '\n') - tk.record(line) if tk.getboolean(tk.call('info', 'complete', cmd)): + tk.record(line) try: result = tk.call('eval', cmd) except tkinter.TclError, msg: