mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
use $DISPLAY
This commit is contained in:
parent
c66394d049
commit
55618efad9
1 changed files with 2 additions and 1 deletions
|
@ -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 = ''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue