Delete system
Browse files- system/.ipynb_checkpoints/config-checkpoint.yaml +0 -15
- system/config.yaml +0 -15
- system/init.py +0 -6
- system/myfooter.py +0 -11
- system/myheader.py +0 -22
system/.ipynb_checkpoints/config-checkpoint.yaml
DELETED
@@ -1,15 +0,0 @@
|
|
1 |
-
title: "SimpleStart Demo"
|
2 |
-
|
3 |
-
show_sidebar: true
|
4 |
-
wide_screen_mode : true
|
5 |
-
|
6 |
-
show_header: false
|
7 |
-
app_bar_height: 59 ##default is 64
|
8 |
-
|
9 |
-
show_footer: false
|
10 |
-
|
11 |
-
locales:
|
12 |
-
- code: ""
|
13 |
-
name: "English"
|
14 |
-
- code: "zh"
|
15 |
-
name: "Chinese 中文"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
system/config.yaml
DELETED
@@ -1,15 +0,0 @@
|
|
1 |
-
title: "SimpleStart Demo"
|
2 |
-
|
3 |
-
show_sidebar: true
|
4 |
-
wide_screen_mode : true
|
5 |
-
|
6 |
-
show_header: false
|
7 |
-
app_bar_height: 59 ##default is 64
|
8 |
-
|
9 |
-
show_footer: false
|
10 |
-
|
11 |
-
locales:
|
12 |
-
- code: ""
|
13 |
-
name: "English"
|
14 |
-
- code: "zh"
|
15 |
-
name: "Chinese 中文"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
system/init.py
DELETED
@@ -1,6 +0,0 @@
|
|
1 |
-
#改成config.yaml中设置了,这个文件的调用可以保留,暂时不文档说明
|
2 |
-
|
3 |
-
import simplestart as ss
|
4 |
-
|
5 |
-
|
6 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
system/myfooter.py
DELETED
@@ -1,11 +0,0 @@
|
|
1 |
-
import simplestart as ss
|
2 |
-
|
3 |
-
|
4 |
-
def test(event):
|
5 |
-
ss.message(123)
|
6 |
-
|
7 |
-
with ss.row():
|
8 |
-
ss.spacer()
|
9 |
-
ss.write("hi, footer")
|
10 |
-
ss.button("test", onclick = test)
|
11 |
-
ss.spacer()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
system/myheader.py
DELETED
@@ -1,22 +0,0 @@
|
|
1 |
-
import simplestart as ss
|
2 |
-
|
3 |
-
|
4 |
-
data = [
|
5 |
-
{"index":"mnu_dcmxlx", "title":"Functions"},
|
6 |
-
{"index":"mnu_dcxzlx", "title":"Help"}
|
7 |
-
]
|
8 |
-
|
9 |
-
|
10 |
-
def myselect(event):
|
11 |
-
ss.message(event.data["keyPath"])
|
12 |
-
|
13 |
-
|
14 |
-
style = '''
|
15 |
-
background:lightblue;
|
16 |
-
'''
|
17 |
-
|
18 |
-
mc = ss.col(align = "end", outline = False, height=59) #要和config.yaml中的app_bar_height 一致
|
19 |
-
|
20 |
-
#mc.write("### my header")
|
21 |
-
with mc:
|
22 |
-
ss.menu(data, direction = "horizontal", dark = True, onselect = myselect)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|