Tkinter python GUI程序在PyCharm远程服务器中运行并正常弹出界面
Tkinter python GUI程序在PyCharm远程服务器中运行并正常弹出界面报错代码:_tkinter.TclError: no display name and no $DISPLAY environment variable先举个例子from tkinter import *root = Tk() # THIS IS THE LINE CAUSING THE ERRORlabel = Label(root, text='Hello World!')label.pack()
原创
2021-01-19 18:37:00 ·
1299 阅读 ·
2 评论