diff options
author | Guido van Rossum <guido@python.org> | 1995-09-07 19:44:48 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1995-09-07 19:44:48 (GMT) |
commit | 55618efad934b1b47cc5fdcf0cc58ca8778d0c6a (patch) | |
tree | f85d71dfcd238b7da67b910fc99288637a7b2264 /Demo/tkinter/guido | |
parent | c66394d04991dd0f618ca9552fe0bfe9d22e8302 (diff) | |
download | cpython-55618efad934b1b47cc5fdcf0cc58ca8778d0c6a.zip cpython-55618efad934b1b47cc5fdcf0cc58ca8778d0c6a.tar.gz cpython-55618efad934b1b47cc5fdcf0cc58ca8778d0c6a.tar.bz2 |
use $DISPLAY
Diffstat (limited to 'Demo/tkinter/guido')
-rwxr-xr-x | Demo/tkinter/guido/wish.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Demo/tkinter/guido/wish.py b/Demo/tkinter/guido/wish.py index 5cbb1b9..eec4b69 100755 --- a/Demo/tkinter/guido/wish.py +++ b/Demo/tkinter/guido/wish.py @@ -1,8 +1,9 @@ # This is about all it requires to write a wish shell in Python! import tkinter +import os -tk = tkinter.create(':0', 'wish', 'Tk', 1) +tk = tkinter.create(os.environ['DISPLAY'], 'wish', 'Tk', 1) tk.call('update') cmd = '' |