Possibly to change a widget's depth (z dimension)?

23 views
Skip to first unread message

GreyGnome

unread,
Aug 25, 2016, 6:47:17 PM8/25/16
to Kivy users support
Hello,
I know it's possible to add a widget to a layout at a certain depth by specifying its index, but is it possible to reorder widgets by going in and modifying a group of indices? Assume the widgets are all immediate children of the same parent.

I could experiment, but rather than shooting around wildly I thought I'd ask here.

Thanks.

Alexander Taylor

unread,
Aug 25, 2016, 7:41:06 PM8/25/16
to Kivy users support
Kivy doesn't use the third dimension explicitly (although in opengl you could do so), so z-order is the same thing as drawing order. That means that the best way to reorder things is generally just to change the order of widgets in their parent, using add_widget and remove_widget (add_widget takes an index).
Reply all
Reply to author
Forward
0 new messages