I have a python program that has no windows frame and doesn't show up in the taskbar because of self.overrideredirect(1). This program has an options menu (a top level widget) that allows for the alpha to be adjusted with self.attributes("-alpha", 0.85). However when I close out of the options menu my program shows up in the task bar. Obviously I don't want it to do this. I tried invoking the self.overrideredirect(1) command after the options menu was closed, but to no avail. Does anyone have a solution/ know of a line that will remove my program from the task bar?
If you change the override redirect flag you need to withdraw and then deiconify the window to give the window manager a chance to make the change. You might try that.
Also, when you say "close out" the option menu top-level, what exactly do you mean? Are you sure destroying this second top-level window?
Help with Tkinter Alpha