How use kivy language set StackLayout background, in stacklayout.py ,I can't found how to use;
<MainScreen>:
view: view
FloatLayout:
StackLayout:
orientation: 'lr-bt'
spacing: 50
id: view
pos: 0, 20
background_color:(1,1,1,1)
ButtonImage:
image: 'bv_a_pic_confirm'
callback: root.do_confirm
no_toggle: True
Layout and Widget classes don't have the property background_color. Instead use canvas:
StackLayout:
canvas:
Color:
rgba: 1, 1, 1, 1
Rectangle:
pos: self.pos
size: self.size
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With