Type/to search

python 状态栏表格 显示按钮范例

Chart
8
Follow
1370
Followers
Source
Python
import json

def main():
    tab = {
        "type" : "table", 
        "title" : "demo", 
        "cols" : ["a", "b", "c"], 
        "rows" : [["1", "2", {"type" : "button", "cmd" : "coverAll", "name" : "平仓"}]]    # 在状态栏表格 第一行,第三列上配置一个按钮 名字是平仓
    }
    
    while True:
        LogStatus("`" + json.dumps(tab) + "`")
        cmd = GetCommand()
        if cmd:
            Log(cmd)
        Sleep(2000)
Comment
All comments (0)
No data
No data
  • 1
Forums
PINE Language
Get the app
iPhone Download
© 2015 - ∞ INVENTOR PTE LTD (SG)