Forum Archive

List help

Jozh

How do you make this work

```
import dialogs

text = '''the
tree
going'''

dialogs.edit_list_dialog(title='', items= [text], move=True, delete=True)```

JonB

@Jozh said:

import dialogs

text = '''the
tree
going'''

dialogs.edit_list_dialog(title='', items= [text], move=True, delete=True)```

items should be a list with more than one item. You provided a list with a single item.

l=dialogs.edit_list_dialog(title='', items= text.split('\n'), move=True, delete=True)
Jozh

Thanks you.