You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
import tkinter as tk
|
|
|
|
|
|
|
|
|
|
# 创建一个简单的Tkinter窗口
|
|
|
|
|
root = tk.Tk()
|
|
|
|
|
root.title("Tkinter检查")
|
|
|
|
|
|
|
|
|
|
# 添加一个标签
|
|
|
|
|
label = tk.Label(root, text="Tkinter已安装!")
|
|
|
|
|
label.pack()
|
|
|
|
|
|
|
|
|
|
# 启动主事件循环
|
|
|
|
|
root.mainloop()
|