Hide Any Python App to System Tray | FuzzuTech GUI with pystray πŸ”₯

 Demo :


Click Video πŸ‘‡πŸ‘‡πŸ‘‡



























✨ Features :

  • Dark Mode Custom GUI

  • Hide and Show Tray App

  • Uses PIL + pystray + tkinter

  • Works fully offline

  • Clean layout and animated transitions

  • Beginner friendly source code

  • Ideal for mini tools and background utilities


πŸ“– Description :

Ever wanted to hide your Python app into the system tray like pro desktop tools?
This FuzzuTech project gives you that exact ability using a combination of tkinter and pystray. Watch the full working demo and copy the code directly to start building your own stealth tools!


Code :


import tkinter as tk

from PIL import Image, ImageTk

from pystray import Icon, MenuItem as item

import threading

import sys

import os


class TrayApp:

    def __init__(self, root):

        self.root = root

        self.root.title("FuzzuTech Tray (Window) App")

        self.root.geometry("400x300")

        self.root.configure(bg="#1f1f1f")  # Dark background


        self.root.protocol("WM_DELETE_WINDOW", self.hide_window)


        # Stylish Label

        self.label = tk.Label(

            self.root, 

            text="Welcome to FuzzuTech Tray (Window) App!",

            bg="#1f1f1f", fg="#00ffd5",

            font=("Segoe UI", 14, "bold")

        )

        self.label.pack(pady=50)


        # Exit Button

        self.exit_btn = tk.Button(

            self.root, 

            text="Hide to Tray (Window)", 

            bg="#00ffd5", fg="black",

            font=("Segoe UI", 12, "bold"),

            bd=0, padx=20, pady=10,

            command=self.hide_window

        )

        self.exit_btn.pack()


        # Load tray icon

        image = Image.open("icon.png")

        menu = (

            item('Show App', self.show_window),

            item('Exit', self.quit_app)

        )


        self.icon = Icon("FuzzuTray", image, "FuzzuTech App", menu)


    def hide_window(self):

        self.root.withdraw()

        threading.Thread(target=self.icon.run, daemon=True).start()


    def show_window(self, icon=None, item=None):

        self.root.deiconify()

        self.icon.stop()


    def quit_app(self, icon=None, item=None):

        self.icon.stop()

        self.root.quit()


# Start app

if __name__ == "__main__":

    root = tk.Tk()

    app = TrayApp(root)

    root.mainloop()

Comments

Popular posts from this blog

πŸš€ Simple Login & Registration System in Python Tkinter πŸ“±

πŸ”₯ Advanced MP3 Music Player in Python | CustomTkinter + Pygame | Free Source Code

πŸš€ Create a Python Screen Recorder with Audio (Complete Code)