python status bar tables showing button examples

Author: The Little Dream, Date: 2019-05-10 11:35:13
Tags: ChartPython


import json

def main():
    tab = {
        "type" : "table", 
        "title" : "demo", 
        "cols" : ["a", "b", "c"], 
        "rows" : [["1", "2", {"type" : "button", "cmd" : "coverAll", "name" : "平仓"}]]    # 在状态栏表格 第一行,第三列上配置一个按钮 名字是平仓
    }
    
    LogStatus("`" + json.dumps(tab) + "`")


Related

More