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)