Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
192 views
in Technique[技术] by (71.8m points)

python - Kivy 2 lines of text for label

<AI_Window>:
name: "AI"

GridLayout:
    cols:1
    rows:4

    Label:
        text: "Data Mining "
        text: "test"

I am trying to assign 2 lines of text for the Label. However when i run this, the output is "test" instead of "test" and "Data Mining ".

Is there a way to output both "test" and "Data Mining" on the label? Thanks

question from:https://stackoverflow.com/questions/65893802/kivy-2-lines-of-text-for-label

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
text: "Data Mining\ntest"

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...