-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpage_home.py
More file actions
42 lines (32 loc) · 1.16 KB
/
page_home.py
File metadata and controls
42 lines (32 loc) · 1.16 KB
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
30
31
32
33
34
35
36
37
38
39
40
41
42
from page_base import BasePage
from util_template import *
from util_web import *
import streamlit as st
class HomePage(BasePage):
def initData(self):
pass
def initUi(self):
self.showTitle()
self.features()
self.reference()
with st.sidebar:
st.button('Template', on_click=toShowTemplate)
def reference(self):
st.write(
f"""
# Reference
###### Home page {blank(4)} https://streamlit.io
###### Documentation {blank(4)} https://docs.streamlit.io
###### Git {blank(4)} https://github.com/streamlit/streamlit
###### extras {blank(4)} https://extras.streamlit.app/
###### emoji {blank(4)} https://streamlit-emoji-shortcodes-streamlit-app-gwckff.streamlit.app/
###### import emoji: {blank(4)} from rich._emoji_codes import EMOJI
"""
)
def features(self):
st.write('''
# Features
## Generate code by template
User can select a template and input some parameters, then generate code by the template.
## Add/Edit/Remove code template
''')