-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain_home.py
More file actions
91 lines (61 loc) · 4.02 KB
/
Copy pathmain_home.py
File metadata and controls
91 lines (61 loc) · 4.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
from tkinter import *
import tkinter as tk
from PIL import Image, ImageTk
import subprocess
from main_lookup import lookup
def home():
home = tk.Toplevel()
home.title("WHITEWOLF-TOOLS")
home.geometry("1200x560")
home.minsize(1200, 560)
home.iconbitmap("icon-tool.ico")
home.configure(bg="black")
home.grid_columnconfigure(0, weight=1)
home.grid_columnconfigure(1, weight=1)
home.grid_rowconfigure(0, weight=1)
hautdroite_frame = Frame(home, bg="black")
hautdroite_frame.grid(row=0, column=1, sticky="ne", padx=(0, 150))
hautdroite2_frame = Frame(home, bg="black")
hautdroite2_frame.grid(row=0, column=1, sticky="e", padx=(0, 50))
bg_label = tk.Label(home, bg="black")
bg_label.place(x=0, rely=0.5, anchor="w")
gif = Image.open("back.gif")
frames = []
try:
while True:
frames.append(ImageTk.PhotoImage(gif.copy()))
gif.seek(len(frames))
except Exception as e:
print(f"ERROR {e}")
pass
frame_index = 0
def animate():
nonlocal frame_index
bg_label.config(image=frames[frame_index])
frame_index = (frame_index + 1) % len(frames)
home.after(1000, animate)
animate()
texte_complet = f"""
██╗ ██╗██╗ ██╗██╗████████╗███████╗██╗ ██╗ ██████╗ ██╗ ███████╗
██║ ██║██║ ██║██║╚══██╔══╝██╔════╝██║ ██║██╔═══██╗██║ ██╔════╝
██║ █╗ ██║███████║██║ ██║ █████╗ ██║ █╗ ██║██║ ██║██║ █████╗
██║███╗██║██╔══██║██║ ██║ ██╔══╝ ██║███╗██║██║ ██║██║ ██╔══╝
╚███╔███╔╝██║ ██║██║ ██║ ███████╗╚███╔███╔╝╚██████╔╝███████╗██║
╚══╝╚══╝ ╚═╝ ╚═╝╚═╝ ╚═╝ ╚══════╝ ╚══╝╚══╝ ╚═════╝ ╚══════╝╚═╝ """
titre = tk.Label(hautdroite_frame, text=texte_complet, bg="black", fg="white", font=("Courier New", 7, "bold"))
titre.pack()
LOOKUP = Button(hautdroite2_frame, text="LOOKUP", font=("Orbitron", 14, "bold"), fg="white", bg="#111111", activebackground="#222222", activeforeground="white", relief="flat", bd=0, padx=20, pady=10, cursor="hand2", command=lookup)
LOOKUP.grid(row=0, column=0, padx=10)
SECU = Button(hautdroite2_frame, text="Sécurity", font=("Orbitron", 14, "bold"), fg="white", bg="#111111", activebackground="#222222", activeforeground="white", relief="flat", bd=0, padx=20, pady=10, cursor="hand2")
SECU.grid(row=0, column=1, padx=10)
DISCORD = Button(hautdroite2_frame, text="Discord", font=("Orbitron", 14, "bold"), fg="white", bg="#111111", activebackground="#222222", activeforeground="white", relief="flat", bd=0, padx=20, pady=10, cursor="hand2")
DISCORD.grid(row=0, column=2, padx=10)
COVID = Button(hautdroite2_frame, text="Covid", font=("Orbitron", 14, "bold"), fg="white", bg="#111111", activebackground="#222222", activeforeground="white", relief="flat", bd=0, padx=20, pady=10, cursor="hand2")
COVID.grid(row=0, column=3, padx=10)
def EXIT():
subprocess.call("taskkill /F /IM python.exe", shell=True)
EXIT = Button(hautdroite2_frame, text="EXIT", font=("Orbitron", 14, "bold"), fg="white", bg="#111111", activebackground="#222222", activeforeground="white", relief="flat", bd=0, padx=20, pady=10, cursor="hand2", command=EXIT)
EXIT.grid(row=0, column=3, padx=10)
hautdroite_frame.lift()
hautdroite2_frame.lift()
home.mainloop()