-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
31 lines (23 loc) · 766 Bytes
/
setup.py
File metadata and controls
31 lines (23 loc) · 766 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Modules
import streamlit as st
from component.navbar import navbar_utils as utl
from views import home,about
# set title of webpage
st.set_page_config(layout="wide", page_title='PMBD')
# function for handle navigation
def navigation():
# inject css
utl.inject_custom_css()
st.set_option('deprecation.showPyplotGlobalUse', False)
# inject navbar to webpage
utl.navbar_component()
route = utl.get_current_route()
if route == "home":
# if user selected home on navbar
home.load_view()
elif route == "about":
# if user selected about on navbar
about.load_view()
elif route == None:
# if user has't selected any option on navbar( by defalut )
home.load_view()