ich fange gerade an, kivy zu nutzen und raffe nicht wie ich Layoutelemente schachteln kann. Wenn ich den Code unten nutze, kriege ich entweder einen
Code: Alles auswählen
AttributeError: 'kivy.graphics.vertex_instructions.Rectangle' object has no attribute 'fbind'
Code: Alles auswählen
kivy.uix.widget.WidgetException: add_widget() can be used only with instances of the Widget class.
Code: Alles auswählen
<Interface>:
BoxLayout:
orientation: 'vertical'
canvas:
Color:
rgba: .2, .2, .2, 1.
BoxLayout:
orientation: 'horizontal'
size_hint_y: .8
Widget:
size_hint_x: .62
canvas:
Color:
rgba: .4, .4, .4, 1.
Widget:
size_hint_x: None
canvas:
Color:
rgba: .4, .4, .4, 1.
Widget:
canvas:
Color:
rgba: .5, .5, .5, 1.
size_hint_y: .3
Rectangle:
size_hint_x: None