Thanks Kovak. It works like that!
<Popup>:
#id: myPopup
title: 'Useful information'
title_size: '20sp'
size_hint: .5, .5
#size: (400, 400)
content: lblContent
Label:
id: lblContent
text: 'Did you know that...'
while this doesn't:
<Popup>:
#id: myPopup
title: 'Useful information'
title_size: '20sp'
size_hint: .5, .5
#size: (400, 400)
content:
Label:
text: 'Did you know that...'
giving the following error:
[WARNING ] stderr: text: 'Did you know that...'
[WARNING ] stderr: ^
[WARNING ] stderr: SyntaxError: invalid syntax
If I build the Popup in the .py file following the documentation, I could nest the above as follows:
popup = Popup(content=Label(text='Hello world'))
Based on that I decided to do the same in the .kv file. But this does not work unless I create the Label at the same level with all the other Popup attributes and refer to its ID in the Popup content attrib.
Isn't it weird ?