import tkinter as tk
from tkinter import messagebox
def shou_popup(event=None):
messagebox.showinfo('哈哈哈哈', '你的电脑被我控制啦')
for i in range(1000):
root = tk.Tk()
root.attributes("-fullscreen", True)
root.attributes("-alpha", 0.1)
button = tk.Button(root, command=shou_popup, width=root.winfo_screenwidth(), height=root.winfo_screenheight())
button.pack()
c = tk.Canvas(root, height=300, width=400)
c.bind_all("<Key>", shou_popup)
root.mainloop()