How to use pos_hint with FloatLayout in kivy?

Viewed 21647

I am trying to align labels and button in my test UI this is my kv file

<test>:   

    Label:        
        text: "foo"
        color: 0,1,0,1
        #pos:120,20
        pos_hint:{"right":0.1,"top":1}
    Label:
        text:"boo"
        color: 0,0,1,1
        #pos:80,20
        pos_hint:{"right":0.1,"top":0.5}

    Label:
        text:"bar"
        color: 1,0,0,1
        #pos:20,120
        pos_hint:{"right":0.1,"top":0.1}
    Button:
        text:"goo"
        size_hint:0.1,0.1

I am able to succesfully create labels foo,boo and bar using pos but when I used pos_hint it returns blank output?

1 Answers
Related