use $DISPLAY

This commit is contained in:
Guido van Rossum 1995-09-07 19:44:48 +00:00
parent c66394d049
commit 55618efad9
1 changed files with 2 additions and 1 deletions

View File

@ -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 = ''