]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Moved tk.record() to record whole commands instead of lines
authorGuido van Rossum <guido@python.org>
Mon, 20 Jun 1994 08:13:02 +0000 (08:13 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 20 Jun 1994 08:13:02 +0000 (08:13 +0000)
Demo/tkinter/guido/wish.py

index 16cacde130855bf1ebfdc87a30afffff5915a5ec..5cbb1b90c221b396eaa2e34f27b7a080af85bf7b 100755 (executable)
@@ -15,8 +15,8 @@ while 1:
        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: