繁体   English   中英

Tkinter没有出现

[英]Tkinter does not show up

我下载了Canopy,我想使用Tkinter ,为此,我禁用了pylab并运行了该程序,但仍然没有任何显示。 此外,我在jupyter和相同的问题上尝试了jupyter

我该如何运作?

这是我的代码:

import Tkinter as Tk

screen=Tk.Tk()
screen.title("Matplot Graphies")
screen.geometry("500x500")

我尝试使用简单的代码来查看GUI,但仍然没有任何反应。

您需要在最后调用mainloop()方法。

import Tkinter as Tk

screen=Tk.Tk()
screen.title("Matplot Graphies")
screen.geometry("500x500")
screen.mainloop()

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM