pull/602/head
KRSHH 2024-09-18 17:23:03 +05:30 committed by GitHub
parent 06e7cbf13e
commit 0b9bc946d3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 1 deletions

View File

@ -3,7 +3,7 @@ import webbrowser
import customtkinter as ctk
from typing import Callable, Tuple
import cv2
from PIL import Image, ImageOps
from PIL import Image, ImageOps, ImageTk
import tkinterdnd2 as tkdnd
import modules.globals
@ -220,6 +220,10 @@ def create_root(
root.protocol("WM_DELETE_WINDOW", lambda: destroy())
root.resizable(True, True)
# Add icon (replace 'icon.ico' with your actual icon file)
icon_path = os.path.join(os.path.dirname(__file__), "icon.ico")
root.iconbitmap(icon_path)
main_frame = ctk.CTkFrame(root, fg_color="#1a1a1a")
main_frame.pack(fill="both", expand=True, padx=20, pady=20)