I have a top-level window, whose specific location is set via geometry string. w.overrideredirect(True) is called because the top-level window mustn't have any window manager decorations. The official documentation states:
Be sure to call the .update_idletasks() method (see Section 26, “Universal widget methods”(p. 97)) before setting this flag.
So that's exactly what I did, but now window manager decorations appear. It works fine if I don't call w.update_idletasks().
Code:
w = tk.Toplevel(self.parent_frame)
w.geometry('48x240+1567+209')
w.update_idletasks()
w.overrideredirect(True)
I'm using Python 3.8.10 with Tk version 8.6.10 on Ubuntu 20.04.3 LTS.