Use Logo
							parent
							
								
									8055d79daf
								
							
						
					
					
						commit
						f0c66732e7
					
				| 
						 | 
					@ -157,6 +157,11 @@ def create_root(start: Callable[[], None], destroy: Callable[[], None]) -> ctk.C
 | 
				
			||||||
    root.configure()
 | 
					    root.configure()
 | 
				
			||||||
    root.protocol("WM_DELETE_WINDOW", lambda: destroy())
 | 
					    root.protocol("WM_DELETE_WINDOW", lambda: destroy())
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
 | 
					    # Add icon to the main window
 | 
				
			||||||
 | 
					    icon_path = resolve_relative_path("deeplivecam.ico")
 | 
				
			||||||
 | 
					    if os.path.exists(icon_path):
 | 
				
			||||||
 | 
					        root.iconbitmap(icon_path)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    # Image Selection Area (Top)
 | 
					    # Image Selection Area (Top)
 | 
				
			||||||
    source_label = ctk.CTkLabel(root, text=None)
 | 
					    source_label = ctk.CTkLabel(root, text=None)
 | 
				
			||||||
    source_label.place(relx=0.1, rely=0.1, relwidth=0.3, relheight=0.25)
 | 
					    source_label.place(relx=0.1, rely=0.1, relwidth=0.3, relheight=0.25)
 | 
				
			||||||
| 
						 | 
					@ -520,6 +525,11 @@ def create_preview(parent: ctk.CTkToplevel) -> ctk.CTkToplevel:
 | 
				
			||||||
    preview.protocol("WM_DELETE_WINDOW", lambda: toggle_preview())
 | 
					    preview.protocol("WM_DELETE_WINDOW", lambda: toggle_preview())
 | 
				
			||||||
    preview.resizable(width=True, height=True)
 | 
					    preview.resizable(width=True, height=True)
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
 | 
					    # Add icon to the preview window
 | 
				
			||||||
 | 
					    icon_path = resolve_relative_path("deeplivecam.ico")
 | 
				
			||||||
 | 
					    if os.path.exists(icon_path):
 | 
				
			||||||
 | 
					        preview.iconbitmap(icon_path)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    preview_label = ctk.CTkLabel(preview, text=None)
 | 
					    preview_label = ctk.CTkLabel(preview, text=None)
 | 
				
			||||||
    preview_label.pack(fill="both", expand=True)
 | 
					    preview_label.pack(fill="both", expand=True)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue