test2023h5's picture
Upload 5 files
2104b65 verified
raw
history blame
455 Bytes
import simplestart as ss
data = [
{"index":"mnu_dcmxlx", "title":"Functions"},
{"index":"mnu_dcxzlx", "title":"Help"}
]
def myselect(event):
ss.message(event.data["keyPath"])
style = '''
background:lightblue;
'''
mc = ss.col(align = "end", outline = False, height=59) #要和config.yaml中的app_bar_height 一致
#mc.write("### my header")
with mc:
ss.menu(data, direction = "horizontal", dark = True, onselect = myselect)