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.


    Navigation Items

    Pythonista
    2
    2
    956
    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.
    • robertiii
      robertiii last edited by

      left_button_items are added to the title bar rather than the navigation bar.

      nav = ui.NavigationView(v)
      nav.left_button_items = [ui.ButtonItem(title='Hi')]
      
      1 Reply Last reply Reply Quote 0
      • dgelessus
        dgelessus last edited by

        The buttons that appear on the navigation view toolbar (the one with the back button) come from the view that's currently visible in the navigation view. That means you need to set the left_button_items of v, not nav. When you push/pop views on nav, the toolbar buttons change to those of the new top view.

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