import tkinter as tk
root = tk.Tk()
# 增加背景图片
photo = tk.PhotoImage(file="背景.png")
theLabel = tk.Label(root,text = "我是内容,\n请你阅读",image = photo,
compound = tk.CENTER,
font = ("华文行楷", 20),
fg = "white")
theLabel.pack()
tk.mainloop()
python tkinter 按钮背景文字分离
最新推荐文章于 2024-04-05 22:54:24 发布