Hi,

I'm looking for examples on how to change views depending on input.

The examples for ui never change the view layout, so it's difficult to get started.

From the docs I found "class ui.NavigationView", but also
" View.subviews" and "View.bring_to_front()" to maybe switch between views,
but so far I could not yet put it all together. I also can load several views from pyui files, but only display the one.

I'm looking for code examples on loading two different views from pyui files, for
example one to get some keyboard input and a second view that after input lets you do something with it.

I've tested

mainview = ui.load_view()
mainview2 = ui.load_view('test2')

mainview.present('sheet')

and on button press

mainview2.bring_to_front()

which goes nothing (mainview and mainview2 as global)

If you know any short examples on how to approach changing views, please post a link. Or if you know how to load a pyui file into a part of another pyui file, this should works as well.

Thanks