diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2006-03-17 06:49:51 +0000 |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2006-03-17 06:49:51 +0000 |
commit | 436d2416039c42bfa9665c0572ba3ec4f877156a (patch) | |
tree | 7ff9e8285951b40d0c1fd6c41b5a433461ec61a2 /Demo/tkinter | |
parent | dea90d92c29e799b501b366a2be16496d5e1f932 (diff) | |
download | cpython-436d2416039c42bfa9665c0572ba3ec4f877156a.tar.gz |
Get rid of a bunch more raw_input references
Diffstat (limited to 'Demo/tkinter')
-rwxr-xr-x | Demo/tkinter/guido/wish.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Demo/tkinter/guido/wish.py b/Demo/tkinter/guido/wish.py index 0a61ad88d8..35e012c7df 100755 --- a/Demo/tkinter/guido/wish.py +++ b/Demo/tkinter/guido/wish.py @@ -2,6 +2,7 @@ import _tkinter import os +import sys tk = _tkinter.create(os.environ['DISPLAY'], 'wish', 'Tk', 1) tk.call('update') @@ -12,7 +13,9 @@ while 1: if cmd: prompt = '' else: prompt = '% ' try: - line = raw_input(prompt) + sys.stdout.write(prompt) + sys.stdout.flush() + line = sys.stdin.readline() except EOFError: break cmd = cmd + (line + '\n') |