omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    List help

    Pythonista
    2
    3
    2345
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Jozh
      Jozh last edited by

      How do you make this work

      import dialogs
      
      text = '''the
      tree
      going'''
      
      
      
      dialogs.edit_list_dialog(title='', items= [text], move=True, delete=True)```
      1 Reply Last reply Reply Quote 0
      • JonB
        JonB last edited by

        @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)
        
        1 Reply Last reply Reply Quote 1
        • Jozh
          Jozh last edited by

          Thanks you.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Powered by NodeBB Forums | Contributors