欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

xinixn - 电脑bug

程序员文章站 2024-03-23 21:02:46
...
import tkinter

chuangkou = tkinter.Tk()
chuangkou.geometry("1600x800")
chuangkou.title("maliao")
def xiaochu():
    b["text"] = "over"

b = tkinter.Label(
    chuangkou,
    text="你的电脑中病毒了",
    bg="#000000",
    fg="#54FF9F",
    width = 1000,
    height = 15,
    font = (None,30)
)
b.pack()
btn = tkinter.Button(
    chuangkou,
    text = "xiaochu",
    bg = "#6495ED",
    fg = "#FA8072",
    font = (None,30),
    width = 20,
    height = 5,
    command = xiaochu
)
btn.pack()
chuangkou.mainloop()