如何将ListItemLabel放入ListProperty

2024-05-16 23:28:10 发布

您现在位置:Python中文网/ 问答频道 /正文

ListItemLabel只接受字符串。我想给它一个列表中的多个元素,我在ListItemLabel中使用front str,但它什么都不做

Python:

result_true = ListProperty([])

extra = self.viewedit.adapter.data 

for edit in extra: 
    if edit['active'] == True:

        app.result_true.append(edit['text'])
        #app.result_true = (edit['text'])
        print app.result_true 

基维:

ListItemLabel:
   text:str(ctx.edit)

退货:

['\xce\xbb\xce\xb9\xce\xb1\xcf\x83\xcf\x84\xce\xae \xce\xbd\xcf\x84\xce\xbf\xce\xbc\xce\xac\xcf\x84\xce\xb1', '\xcf\x83\xce\xbf\xcf\x85\xcf\x83\xce\xac\xce\xbc\xce\xb9', '\xcf\x84\xcf\x85\xcf\x81\xce\xaf']


Tags: texttrueappresulteditextrastrxcf