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?
-
I want to use LargeNavigationBar at Pythonista.
But I don't know how to use it...
Could you tell me method of implementation?
-
@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()
-
It worked perfectly!!
I really appreciate it! Thanks :)