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.


    Hide close button UI

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

      I'd like a way to keep my right_button_items but hide the close button. Is there an easy way to do this? The only way I can think is to encompass everything in a NavigationView, then hide the title bar of the main view. This seems silly, and kind of hackish

      Phuket2 1 Reply Last reply Reply Quote 0
      • Phuket2
        Phuket2 @Webmaster4o last edited by

        @Webmaster4o , have never tried hiding or modififying the visible attribute of the left or right buttonItems. If you hide the menu bar write your own , you would have full control. But, it would be worth trying to write a function or method to dynamically to add and delete the UI.ButtonItem.

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

          I just did a dir on UI.Button and UI.ButtonItem. ui.ButtonItem() has an enabled attr. Not sure if that helps you vrs hiding it

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

            There isn't really a good way to do this except for putting everything into your own NavigationView.

            1 Reply Last reply Reply Quote 1
            • Webmaster4o
              Webmaster4o last edited by

              Ok, thanks @omz. I ended up just hiding the title bar and placing my button elsewhere in the UI.

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