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.


    Can I use LargeNavigationBar at Pythonista 3?

    Pythonista
    pythonista objective-c objcutil pythonista 3
    2
    3
    2225
    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.
    • v3
      v3 last edited by v3

      I want to use LargeNavigationBar at Pythonista.

      But I don't know how to use it...

      Could you tell me method of implementation?

      cvp 1 Reply Last reply Reply Quote 0
      • cvp
        cvp @v3 last edited by

        @v3 try

        n = ui.NavigationView(v1)
        ObjCInstance(n).navigationController().navigationBar().setPrefersLargeTitles_(True)
        

        In, for instance,

        import ui
        from objc_util import *
        
        class MyView(ui.View):
            def __init__(self,name):
                self.name = name
            def draw(self):
                if self.name != n.name:
                    if n.name != None:
                        print(n.name,'closed')
                    n.name = self.name
        
        v1 = MyView('v1')
        v2 = MyView('v2')
        v3 = MyView('v3')
        
        n = ui.NavigationView(v1)
        ObjCInstance(n).navigationController().navigationBar().setPrefersLargeTitles_(True)
        n.push_view(v2)
        n.push_view(v3)
        
        n.present()
        
        1 Reply Last reply Reply Quote 1
        • v3
          v3 last edited by

          It worked perfectly!!
          I really appreciate it! Thanks :)

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