Replies: 1 comment
|
Is CustomLayout effectively the root object, since its first button calls for root.move_slider() when pressed? Root is an overloaded term in kivy. There are 2 meanings of root:
The use of root, and other important kv constructs are defined here: https://kivy.org/doc/stable/api-kivy.lang.html#module-kivy.lang Can I swap the order of CustomLayout and TestLayout around so that TestLayout becomes the root object because it is on top of the hierarchy and have the app still work the same? When trying to reference kivy ids within the python file, how do I know when to reference using "self.ids." vs "self.parent.ids."? I thought root objects aren't enclosed in angle brackets, why is CustomLayout being done so? |
Uh oh!
There was an error while loading. Please reload this page.
Here are the py and kv codes for a simple app that's aimed at helping me understand referencing objects using kivy properties. My questions are:
py code:
kv code:
All reactions