Hello,
I'm trying to get my head arround how Kivy is handling the layout of the widget. Especially when I use the kv language.
Here is an example:
FloatLayout:
Button:
text: "x"
size_hint: .5, .5
pos: 20, 20
Button:
text: "y"
size_hint: .5, .5
pos: 40, 40
Widget:
size_hint: .5, .5
pos: 60, 60
canvas:
Color:
rgb: 1, 0, 0
Rectangle:
size: self.size
Widget:
size_hint: .5, .5
pos: 80, 80
canvas:
Color:
rgb: 0, 1, 0
Rectangle:
size: self.size
As you can imagine I'm expecting to get the same kind of result regarding both the Button object and the Widget object. But here's the render of such test:
The pos attribute is only working for the button object.
Can you explain the logic behind that and maybe a solution to mix and match widget inside a layout?
Regards;