Forum Archive

How to use or call a navigation view ?

Abdalwahab

Hi I want to push a navigation view
To my UI view using the pyui and py files and should I create a new pyui file for it

dgelessus

I think you need to make a second pyui file. Then you can push the second view into the navigation view with something like this:

import ui

view = ui.load_view("main.pyui")
view_to_push = ui.load_view("view_to_push.pyui")
view["navview"].push_view(view_to_push)