Does exist a way to specificate the depth of an element of the Tkinter canvas, like the HTML's z-index?
Currently the only way I found to let the element overlap as I want is to create it in a specific order; the problem is that some element must be created after Others, but they also should have a lower z-index.
Thanks in advance for the help!
Yes, all elements on a canvas are in a stacking order. They can be manipulated with the tag_raise and tag_lower methods.
For a rudimentary layering system see https://stackoverflow.com/a/9576938/7432
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With