summaryrefslogtreecommitdiffstats
path: root/Demo/tkinter
diff options
context:
space:
mode:
Diffstat (limited to 'Demo/tkinter')
-rwxr-xr-xDemo/tkinter/guido/wish.py3
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 = ''