use $DISPLAY
This commit is contained in:
parent
c66394d049
commit
55618efad9
|
@ -1,8 +1,9 @@
|
||||||
# This is about all it requires to write a wish shell in Python!
|
# This is about all it requires to write a wish shell in Python!
|
||||||
|
|
||||||
import tkinter
|
import tkinter
|
||||||
|
import os
|
||||||
|
|
||||||
tk = tkinter.create(':0', 'wish', 'Tk', 1)
|
tk = tkinter.create(os.environ['DISPLAY'], 'wish', 'Tk', 1)
|
||||||
tk.call('update')
|
tk.call('update')
|
||||||
|
|
||||||
cmd = ''
|
cmd = ''
|
||||||
|
|
Loading…
Reference in New Issue