python - How can I resize and position a widget in the kv language? -
i'm trying resize image it's in left corner, i've been playing around , can't head around code works, before put in left corner want resize size of green rectangle see how works i'm not getting that.
#:kivy 1.9.0 gridlayout: rows: 1 leftarea: rightarea: <leftarea@floatlayout>: canvas: color: rgb: 0, 1, 0 rectangle: size: self.size pos: self.pos image: source: 'moneyswags.gif' size: self.size pos: self.pos
everything need written here: image
add allow_stretch: true
image, , cover entire parent float layout.
also, defining size: self.size
, pos: self.pos
inside image nothing. in case of canvas, self
refers widget on drawing (in case, float layout).
Comments
Post a Comment