π» Fake Windows Format GUI in Python – FuzzuTech Project
Demo :
Click Video πππ
Post Features:
-
π Embed YouTube Short
-
πΈ Screenshots of GUI (optional)
-
π Code Snippet/Download Link (if desired)
-
π Link to GitHub (optional)
-
⚠️ Disclaimer: This project is for educational purposes only.
Code :
import tkinter as tk
from tkinter import ttk
import time
import threading
# ---- Format Simulation Function ----
def start_formatting():
start_btn.config(state="disabled")
status_label.config(text="Formatting in progress...\nDo not turn off your computer.", fg="white")
for i in range(101):
progress_bar["value"] = i
percent_label.config(text=f"{i}% Completed")
time.sleep(0.07)
root.update_idletasks()
status_label.config(text="Format Complete.\nRestarting system...", fg="lime")
percent_label.config(text="Done ✔")
# ---- Thread Wrapper ----
def threaded_start():
threading.Thread(target=start_formatting).start()
# ---- Main GUI ----
root = tk.Tk()
root.title("Windows Format Utility")
root.geometry("550x350")
root.configure(bg="#111")
# ---- Title ----
title = tk.Label(root, text="Formatting Drive (C:)", font=("Segoe UI", 22, "bold"), bg="#111", fg="#00ffff")
title.pack(pady=20)
# ---- Progress Bar ----
progress_bar = ttk.Progressbar(root, orient=tk.HORIZONTAL, length=500, mode='determinate', style="Custom.Horizontal.TProgressbar")
progress_bar.pack(pady=15)
# ---- Progress Percentage ----
percent_label = tk.Label(root, text="0% Completed", font=("Consolas", 14), fg="white", bg="#111")
percent_label.pack(pady=5)
# ---- Status Label ----
status_label = tk.Label(root, text="", font=("Segoe UI", 12), fg="white", bg="#111")
status_label.pack(pady=10)
# ---- Start Button ----
start_btn = tk.Button(root, text="Start Format", font=("Segoe UI", 14, "bold"), bg="#ff4444", fg="white", padx=20, pady=10, command=threaded_start)
start_btn.pack(pady=30)
# ---- ProgressBar Style ----
style = ttk.Style()
style.theme_use("default")
style.configure("Custom.Horizontal.TProgressbar", thickness=20, troughcolor='#222', background='#00ff00', bordercolor='#111')
# ---- Launch ----
root.mainloop()
Comments
Post a Comment