-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain-tool.py
More file actions
117 lines (75 loc) · 3.5 KB
/
Copy pathmain-tool.py
File metadata and controls
117 lines (75 loc) · 3.5 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
from tkinter import *
import tkinter as tk
from PIL import Image, ImageTk
import subprocess
from main_home import home
window = tk.Tk()
window.title("WHITEWOLF-TOOLS")
window.geometry("1200x560")
window.minsize(1200, 560)
window.iconbitmap("icon-tool.ico")
window.configure(bg="black")
hautgauche_frame = Frame(window, bg="black")
hautgauche_frame.grid(row=0, column=0, sticky="nw")
gauche_frame = Frame(window, bg="black")
gauche_frame.place(x=100, rely=0.5, anchor="w")
bg_label = tk.Label(window, bg="black")
bg_label.place(x=0, y=0, relwidth=1, relheight=1)
droite_frame = Frame(window, bg="black")
window.grid_columnconfigure(0, weight=1)
window.grid_columnconfigure(1, weight=0)
droite_frame.grid(row=0, column=1, sticky="ne")
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():
global frame_index
bg_label.config(image=frames[frame_index])
frame_index = (frame_index + 1) % len(frames)
window.after(1000, animate)
animate()
texte_complet = f"""
██╗ ██╗██╗ ██╗██╗████████╗███████╗██╗ ██╗ ██████╗ ██╗ ███████╗
██║ ██║██║ ██║██║╚══██╔══╝██╔════╝██║ ██║██╔═══██╗██║ ██╔════╝
██║ █╗ ██║███████║██║ ██║ █████╗ ██║ █╗ ██║██║ ██║██║ █████╗
██║███╗██║██╔══██║██║ ██║ ██╔══╝ ██║███╗██║██║ ██║██║ ██╔══╝
╚███╔███╔╝██║ ██║██║ ██║ ███████╗╚███╔███╔╝╚██████╔╝███████╗██║
╚══╝╚══╝ ╚═╝ ╚═╝╚═╝ ╚═╝ ╚══════╝ ╚══╝╚══╝ ╚═════╝ ╚══════╝╚═╝ """
titre = tk.Label(hautgauche_frame, text=texte_complet, bg="black", fg="white", font=("Courier New", 7, "bold"))
titre.pack()
index = 0
suppression = False
def animation():
global index, suppression
if not suppression:
index += 1
titre.config(text=texte_complet[:index])
if index >= len(texte_complet):
window.after(1500, commencer_suppression)
return
else:
index -= 1
titre.config(text=texte_complet[:index])
if index <= 0:
suppression = False
window.after(1000, animation)
def commencer_suppression():
global suppression
suppression = True
animation()
animation()
investigation = Button(gauche_frame, text="INVESTIGUER", font=("Orbitron", 14, "bold"), fg="white", bg="#111111", activebackground="#222222", activeforeground="white", relief="flat", bd=0, padx=20, pady=10, cursor="hand2", command=home)
credits = Label(droite_frame, text="© xql.dev | light UI build", bg="black", fg="#bdbdbd", font=("Courier New", 8))
credits.pack(side="right", anchor="se", padx=10, pady=8)
investigation.pack(pady=10)
hautgauche_frame.lift()
gauche_frame.lift()
droite_frame.lift()
window.mainloop()