Eric MacLeod February 2016

My text size of a label won't change in kivy

I'm trying to add a label widget to my kv file but the text size won't change, as I understand it I think that the actual label size is changing because the label position should be at the bottom of the screen but it's in the middle of the screen when I run the script.

<LeftArea@FloatLayout>:


    Label:
        text: 'Search Term: '
        text_size: 200, 200
        size: 200, 200
        pos_hint: {'bottom': 1, 'left': 1}

enter image description here

Answers


Eric MacLeod February 2016

OK, I fixed it, I just used markup text

Label:
    markup: True
    text: '[size=20]Search Term: [/size]'

I still don't understand why my original code doesn't work if anyone can explain because I only followed the kivy docs.

Post Status

Asked in February 2016
Viewed 1,475 times
Voted 6
Answered 1 times

Search




Leave an answer