python - How to write (edit) long label text in kv file? -


how should write long text (> 80 chars) relating label in .kv file? example:

label:     text: 'lorem ipsum dolor sit amet, consectetuer adipiscing elit. \            aenean commodo ligula eget dolor. aenean massa. cum sociis \            natoque penatibus et magnis dis parturient montes, nascetur.' 

this example generates errors. have tried kinds of formats nor can find solution in forums.

while assignments toproperties must on 1 line, can contain more 80 characters. option define text in python file , import kv file.

example:

#:import fix fixtures <label>:     text_size: (self.parent.width, self.height)     width: self.parent.width  gridlayout:     rows: 2     label:         text: 'lorem ipsum dolor sit amet, consectetuer adipiscing elit. aenean commodo ligula eget dolor. aenean massa. cum sociis natoque penatibus et magnis dis parturient montes, nascetur.'     label:         text: fix.text 

fixtures.py:

text = 'lorem ipsum dolor sit amet, consectetuer adipiscing elit. \ aenean commodo ligula eget dolor. aenean massa. cum sociis natoque \ penatibus et magnis dis parturient montes, nascetur.' 

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 -