-
Notifications
You must be signed in to change notification settings - Fork 74
Description
this is the st-pages url" ’https://pypi.org/project/st-pages/
i create a mutipage created by st-pages package.
but i fail .
- show error :The page that you have requested does not seem to exist. Running the app's main page.
and i wish the logout button wll show on the mutipage's main page. - i wish the login username and the logout button will show on main.py pages : How can i do it? thanks
if LOGGED_IN == True:
st.markdown("Your Streamlit Application Begins here!")
main_app.main()
the code of the main_app.py is :
import streamlit as st
from st_pages import Page, Section,show_pages, add_page_title
def main():
show_pages(
[
Page("main_app.py",name="主页",icon="🏠"),
Section(name="表格相关处理技术",icon="🏠"),
Page("menuPages/table_linked.py", "主从表格",icon="💪"),
Page("menuPages/second.py", "样例2",icon="💪"),
Section(name="项目相关",icon="🏠"),
Page("menuPages/xm.py", "项目",icon="💪"),
Page("menuPages/tax.py", "税率",icon="💪"),
# in_section=False用明确申明,该页不属于上面的菜单section子项目
Page("menuPages/test.py",name="最后页面",icon="🏠",in_section=False),
]
)
if name == 'main':
main()
pass