python tkinter 按钮背景文字分离

    技术2025-01-12  43

    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()
    Processed: 0.009, SQL: 9