Загрузка данных


import tkinter as tk
import requests, io, sys
from PIL import Image, ImageTk

root = tk.Tk()
root.attributes("-fullscreen", True)
root.configure(bg="black")
root.protocol("WM_DELETE_WINDOW", lambda: None) # Блокируем закрытие

# Ссылка на оригинальную страшную картинку MrsMajor из интернета
URL = "https://githubusercontent.com"
img_data = requests.get(URL).content
image = Image.open(io.BytesIO(img_data)).resize((root.winfo_screenwidth(), root.winfo_screenheight()))
photo = ImageTk.PhotoImage(image)

# Интерфейс
title = tk.Label(root, text="MRSMAJOR SYSTEM INFECTION", font=("Courier", 32, "bold"), fg="red", bg="black")
title.pack(pady=50)

time_left = 10
timer_label = tk.Label(root, text=f"DESTUCTION IN: {time_left}s", font=("Courier", 40, "bold"), fg="white", bg="black")
timer_label.pack(pady=40)

def start_screamer():
    # Удаляем текст и бахаем скример на весь экран!
    title.destroy()
    timer_label.destroy()
    
    screamer_label = tk.Label(root, image=photo, bg="black")
    screamer_label.pack(fill="both", expand=True)
    root.update()
    
    root.after(3000, lambda: [root.destroy(), sys.exit()]) # Самозакрытие через 3 сек

def count_down():
    global time_left
    if time_left > 0:
        time_left -= 1
        timer_label.config(text=f"DESTUCTION IN: {time_left}s")
        # Моргание экрана для жути
        root.configure(bg="red" if time_left % 2 == 0 else "black")
        root.after(1000, count_down)
    else:
        start_screamer()

count_down()
root.mainloop()