From: Guido van Rossum Date: Thu, 7 Sep 1995 19:44:48 +0000 (+0000) Subject: use $DISPLAY X-Git-Tag: v1.3~142 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=55618efad934b1b47cc5fdcf0cc58ca8778d0c6a;p=thirdparty%2FPython%2Fcpython.git use $DISPLAY --- diff --git a/Demo/tkinter/guido/wish.py b/Demo/tkinter/guido/wish.py index 5cbb1b90c221..eec4b6953076 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 = ''