I'm currently working on a safe virus that just spams windows with an image on it, but I ran into a problem of not able to have the image on multiple windows
This is my current code:
from tkinter import Tk, mainloop, Label
from random import randint
from PIL import ImageTk, Image
def Spawn(self):
self.win = Tk()
self.win.geometry(str(randint(10,1000))+'x'+str(randint(10,1000))+'+'+str(randint(-20,800))+'+'+str(randint(-20,500)))
self.win.label = Label(self.win, image= ImageTk.PhotoImage(Image.open(r"bean.jpg"))).pack()
self.win.protocol("WM_DELETE_WINDOW", self.MULTIPLY)
class ULTRASUS():
def __init__(self):
Spawn(self)
def MULTIPLY(self):
self.win.destroy()
Spawn(self)
for I in range (25): ULTRASUS()
mainloop()