No doubt, fixed coordinates are the most flexible way to organize elements in an n-dimensional space; however, it is very time consuming. Instead, Kivy provides a set of layouts that will facilitate the work of organizing widgets. A
Layout is a
Widget subclass that implements different strategies to organize embedded widgets. For example, one strategy could be organizing widgets in a grid (
Let's start with a simple
FloatLayout example. It works in a very similar manner to the way we organize widgets directly inside of another
Widget subclass, except that now we can use proportional coordinates ("percentages" of the total size of the window) rather than fixed coordinates (exact pixels).
That means that we won't need the calculations ...