import tkinter as tk
root = tk.Tk()
root.config(bg='#87CEEB')
root.title("逻辑网")
root.geometry('400x350+300+300')
root.iconbitmap('../image/icon.ico')
def create_toplevel():
top = tk.Toplevel()
top.title("逻辑网")
top.geometry('300x200+100+100')
top.iconbitmap('../image/icon.ico')
# 多行文本显示Message控件
msg = tk.Label(top, text="网址:www.luoji.com", bg='#9BCD9B', font=('宋体', 15))
msg.pack()
tk.Button(root, text="点击创建Toplevel组件", width=20, height=3, command=create_toplevel).pack()
root.mainloop()