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.


    Change default disabled TextField look

    Pythonista
    3
    5
    2332
    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.
    • wcross
      wcross last edited by

      Hi,
      I’ve searched the forum to see how to change the default disabled look of a TextField so that it does not have the outline or grey background but no luck. I’ve tried a couple of things but the look does not change.

      Any suggestions or advice would be great. I’m trying to make the TextField when disabled look like a label but may have to hide a label under it if there is no way to change the look.

      Thanks

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

        consider using a TextView, with editable = False.

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

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • brumm
            brumm last edited by

            When you set .bordered to False you can change the settings (workaround)

                    self['textfield1'].enabled = False
                    self['textfield1'].bordered = False
                    self['textfield1'].border_width = 0
                    self['textfield1'].background_color = 'blue'
                    self['textfield1'].text_color = 'white'
            
            1 Reply Last reply Reply Quote 0
            • wcross
              wcross last edited by

              Thanks for the suggestions. I’ll try changing the settings first suggested by @brumm.

              If that fails then changing to a TextView could be an option.

              Thanks for the top tips!

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