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.


    Way to tell if Text Field is empty

    Pythonista
    2
    3
    1348
    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.
    • techteej
      techteej last edited by

      Is there any way to tell if a text field is empty?

      1 Reply Last reply Reply Quote 0
      • ccc
        ccc last edited by

        if view['user text'].text == '':
            print('empty')
        else:
            print('not empty')
        
        1 Reply Last reply Reply Quote 0
        • techteej
          techteej last edited by

          Thanks.

          Update to high scores module coming soon.

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