📜  tkinter 顶级 - Python 代码示例

📅  最后修改于: 2022-03-11 14:47:24.151000             🧑  作者: Mango

代码示例1
from tkinter import *

root = Tk()
l1 = Label(root, text="Main Window Label")
l1.pack()

top = Toplevel()
l2 = Label(top, text="Toplevel Window Label")
l2.pack()
top.mainloop()
root.mainloop()