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.

enter image description here

#: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

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -