how can I set the z-index of tkinter canvas elements (circle, rectangle) on initial startup of the canvas? Or can I set a z-index directly when drawing e.g. a circle? Unfortunately I could not do much with canvas.tag_lower("tag_name"). I thought this command moves all elements of a tag one level back - is that so?
class CanvasGui(tk.Canvas):
def __init__(self, master):
super().__init__(master, bg="#FFF", highlightthickness=0, borderwidth=0)
self.pack(fill="both", expand=True)
self.setCanvasLayers()
def setCanvasLayers(self):
self.tag_lower("highlightGridPoint")
self.tag_lower("grid")
In my opinion, the elements with the tag "highlightGridPoint" should now be in the farthest background and the elements with the tag "grid" in the foreground. But if I run the program, it's not so...

