I'm creating a GUI in tkinter and I'm trying to customize the window header so I can change the colour.
I've used:
root.overrideredirect(True)
to get rid of the header, then rebuilt the function of moving the tab with:
def move_window(event):
x, y = root.winfo_pointerxy()
root.geometry(f"+{x-650}+{y}")
title_bar = tk.Frame(root, bg=pallete["pallete1"], bd=0,height=22)
title_bar.config(highlightthickness=2, highlightcolor= pallete["pallete3"])
title_bar.pack(fill="x")
title_bar.bind('<B1-Motion>', move_window)
Only this is, that when I overrideredirect
to get rid of the window header, the program disappears in the taskbar, so you can't find it.
I'm just wondering if there is a way to get around this or to change the window header without having to remove it and rebuild a new one.